cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: curl syntax

From: Linus Nielsen Feltzing <linus_at_haxx.se>
Date: Fri, 22 Jul 2005 11:34:41 +0200

Christian Kraus wrote:
> The downloads range are all between 0 and 1000, so I tried:
>
> curl -O http://forum.seda.wiai.uni-bamberg.de/forum/download.php?id[0-1000]

Curl will save the file as "download.php" since that is the name of the
last part of the URL. I suggest you use a script that calls curl for
each URL with a unique file name.

Perl example:

for($i = 0;$i < 1000;$i++) {
        `curl -o file$i
http://forum.seda.wiai.uni-bamberg.de/forum/download.php?id$i`;
}
Received on 2005-07-22