cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: Issue with multiple URLs in config file

From: Ralph Mitchell <ralphmitchell_at_gmail.com>
Date: Wed, 29 Mar 2006 19:16:01 -0600

OK, I'm curious. Why not do something like this:

   cat url_list.txt | while read url
   do
     curl --remote-name $url
   done

and just put a list of urls in the file. Leave out the "url=" and the quotes.

Ralph Mitchell

On 3/29/06, Yoktan <curl_at_yoktan.com> wrote:
> Hi,
>
> Using curl 7.13.0 on OS X 10.4.5
>
> I am trying to download images from a Kodak photo album. Due to some
> restrictions on Kodak's site, the best option seemed to be to capture all
> the photo file URLs into a file and use that as my config file to curl.
> Somewhere, somehow, however, I can't get curl to download more than the
> first file to stdout. The other files all download to stdin.
>
> So here's what I did:
>
> * Config file - exactly as is:
>
> url="http://images.kodakgallery.com/path_to_filename1.jpg"
> url="http://images.kodakgallery.com/path_to_filename2.jpg"
> url="http://images.kodakgallery.com/path_to_filename3.jpg"
>
>
> * CLI input:
>
> curl --config 'url_list.txt' --remote-name
>
>
> n.b. I am using --remote-name because I read a bug submission indicating
> that -o has issues with multiple URLs in the config file.
>
> Thx for the help.
>
>
Received on 2006-03-30