cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Multiple GET on a single connection

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Sun, 23 Feb 2003 20:49:07 +0100 (CET)

On Sat, 22 Feb 2003, jose wrote:

> How can I use the Curl library to get the HTTP 1.1 multiple GET on a single
> connection ?

Use curl_easy_perform() repeatedly, re-using the same curl easy handle, with
a URL identifying the same site. libcurl will then re-use the same connection
automaticly.

> Also, if I want to download a group of urls with their IP address (i.e. no
> need for DNS lookup), is there an easy way to perform multiple downloads
> asynchronously (in a single thread).

Multiple simultanoues downloads in a single thread is only achieved by using
the multi interface (using IP addresses or names make no difference). Read
more about it here:

        http://curl.haxx.se/libcurl/c/libcurl-multi.html

-- 
 Daniel Stenberg -- curl, cURL, Curl, CURL. Groks URLs.
-------------------------------------------------------
This SF.net email is sponsored by: SlickEdit Inc. Develop an edge.
The most comprehensive and flexible code editor you can use.
Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial.
www.slickedit.com/sourceforge
Received on 2003-02-23