cURL / Mailing Lists / curl-users / Single Mail

curl-users

RE: download image without direct link

From: Dmitry ☻ <evermind_at_live.ru>
Date: Sat, 9 Apr 2011 13:41:51 +0400


Could you show example how yo use "-o" key?
I tried to do it in next way:
C:\curl>curl.exe -o "http://sat106.sat24.nl/h-image.ashx?region=eu&time=201104091000&ir=False" > C:\temp\foo.gif
curl: no URL specified!
curl: try 'curl --help' or 'curl --manual' for more information



--
WBR




> Date: Wed, 6 Apr 2011 11:31:18 -0700
> From: dan_at_coneharvesters.com
> To: curl-users_at_cool.haxx.se
> Subject: Re: download image without direct link
>
> On Wed, 4/6/11, Dmitry ☻ <evermind_at_live.ru> wrote:
> > every time when I try to load image via CMD I got error:
> > http://pic2net.ru/view/v/ca2fbc6f9421349396b455b57a699d6d.jpg
> >
> > 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: http://cool.haxx.se/list/listinfo/curl-users
> FAQ: http://curl.haxx.se/docs/faq.html
> Etiquette: http://curl.haxx.se/mail/etiquette.html
                                               

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-users
FAQ: http://curl.haxx.se/docs/faq.html
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2011-04-09