cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: download image without direct link

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Sat, 9 Apr 2011 19:58:19 +0200 (CEST)

On Sat, 9 Apr 2011, Doug McNutt wrote:

> I find it a PITA to have to enter the file name twice for that.

... and that's why we introduced -J a while ago.

> /usr/bin/ curl -o $HOME/dwn/eu_#1.jpeg
> "<http://sat106.sat24.nl/h-image.ashx?region=eu&time=201104091000&ir=False>http://sat106.sat24.nl/h-image.ashx?region=eu&time={201104091000}&ir=False"
>
> which allows creation of a meaningful file name from a single entry.

Yes, that's another way you can do it.

> Note the Linux shell though.

That feature is done entirely by curl and works with any shell.

> I'm also not so sure that the code is intended to work for a single instance
> that way.

It is!

-- 
  / daniel.haxx.se
-------------------------------------------------------------------
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