cURL / Mailing Lists / curl-users / Single Mail


Re: download image without direct link

From: Dan Fandrich <>
Date: Wed, 6 Apr 2011 11:31:18 -0700

On Wed, 4/6/11, Dmitry ˜ <> wrote:
> every time when I try to load image via CMD I got error:
> When I try to use PowerShell in same way it's load corrupted image.

The error in that screenshot shows that the shell you're using doesn't
support the single quote character for quoting arguments, so curl interprets
it as part of the URL. Since "'http://" URLs aren't supported, it errors
out. Try double quotes instead. Even solving that problem, you'll probably
have problems redirecting binary data via stdout to a file. That may leave
the stream in text mode and corrupt the binary data. Use the -o option instead
to write directly to a file (curl will open it in binary mode by default).

>>> Dan
List admin:
Received on 2011-04-06