cURL / Mailing Lists / curl-and-php / Single Mail

curl-and-php

Re: (no subject)

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Sat, 4 Oct 2003 17:33:25 +0200 (CEST)

On Fri, 3 Oct 2003 bike_at_intenseproductions.com wrote:

> 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?

That is a feature of the command line tool, it has a "globbing" function that
then calls libcurl accordingly to download the files. This is not a libcurl
feature.

> curl_setopt($ch, CURLOPT_URL, "http://www.server.com/file[01-10].txt");
>
> it always bombs

"bombs" ? You mean it doesn't work?

>....is there a certain way of doing this? or can it even be done in libcurl?

curl uses nothing but libcurl to get files, so if curl can do it, anything
else that uses libcurl can do it too. It just isn't providing automaticly by
libcurl.

-- 
 Daniel Stenberg -- curl: been grokking URLs since 1998
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
Received on 2003-10-04