cURL / Mailing Lists / curl-users / Single Mail

curl-users

Error running curl and brackets for sequential urls

From: David Straub via curl-users <curl-users_at_cool.haxx.se>
Date: Thu, 5 Nov 2015 05:51:42 +0000 (UTC)

Hi,
I am new to curl and I apologize in advance for asking a basic question. I did spent several hours searching the internet for an answer, but I had no luck.
I want to download a set of sequential urls using curl in Windows command line.
Here is the command I am running in curl
C:\Curl>curl "http://xuexiao.eol.cn/html4/1100/1140000[01-99]/index.shtml" -o #.html
When I run this code, rather than create a sequential url, the bracket is replaced by the beginning of the url, like this:
C:\Curl>curl "http://xuexiao.eol.cn/html4/1100/1140000[01-10]/index.shtml" -o #.html
[1/11]: http://xuexiao.eol.cn/html4/1100/114000001http://xuexiao.eo --> #.html% Total    % Received % Xferd  Average Speed   Time    Time     Time  Current                             Dload  Upload   Total   Spent    Left  Speed0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
[2/11]: http://xuexiao.eol.cn/html4/1100/114000002http://xuexiao.eo --> #.html 0     0    0     0    0     0      0      0 --:--:--  0:00:01 --:--:--     0
Not sure what I am doing wrong. Any suggestions are appreciated.

-------------------------------------------------------------------
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 2015-11-05