cURL / Mailing Lists / curl-library / Single Mail


Re: Multiple GET on a single connection

From: Daniel Stenberg <>
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

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

 Daniel Stenberg -- curl, cURL, Curl, CURL. Groks URLs.
This 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.
Received on 2003-02-23