i know that with command line curl i can do this:
% curl http://www.server.com/file[01-10].txt
and it will get all files: file01.txt - file10.txt
how can i achive this with libcurl?
when i do
curl_setopt($ch, CURLOPT_URL, http://www.server.com/file[01-10].txt;);
it always bombsis there
Dunno if you can do this through curl (honestly never used it), but you could
always do
for ( $x=0 ; $x=10 ; $x++ ) {
curl_setopt($ch, CURLOPT_URL, http://www.server.com/file;.
(($x 10) ? '0' : '').$x..txt);
}
Sincerely,
Captain Obvious
On Friday 03 October 2003 07:25
2 matches
Mail list logo