cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: using curl with an input file [GishPuppy]

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Fri, 23 Feb 2007 10:21:43 +0100 (CET)

On Fri, 23 Feb 2007, haxxse.2y6_at_gishpuppy.com wrote:

> I want to use curl to download 100s of JPGs, possible from from different
> servers, into a new directory tree with different filenames on WINDOWS. I
> can generate a list of URL/path+filename mappings which use 1 line per file
> and the curl -o switch (i.e. http://.../abc.jpg -o path/filename.jpg)
>
> But how can I get (the Windows version of) curl to process each line of the
> input file?
>
> $curl.exe < input_file.txt <== this did not work.

Generate one URL and one -o for each file and put them all in a text file,
then run "curl -K textfile".

-- 
  Commercial curl and libcurl Technical Support: http://haxx.se/curl.html
Received on 2007-02-23