cURL / Mailing Lists / curl-library / Single Mail


Re: performance issue (single Vs. multi interface)

From: Daniel Stenberg <>
Date: Thu, 16 Jan 2003 14:18:18 +0100 (MET)

On Thu, 16 Jan 2003, [ISO-8859-2] Petr J?za wrote:

> I would like to ask you if is there any performance difference in the
> following cases: 1) single interface that sends more than 1 file as
> multipart data (by CURLOPT_HTTPPOST) 2) multi interface that sends more
> than 1 file (by POST method via HTTP or by CURLOPT_HTTPPOST too)

If you're only sending data to one server at a time, and if there's nothing
else than performace that's troubling you, then I'd recommend the easy

> In other words I would like to ask you if is there any optimalization for
> sending more files in single interface (whether files are sent
> simultaneously?) or files are sent one by one?

If you want to send serveral files simultaneously, then there's only the
multi interface that can do that unless you plan to use threads.

 Daniel Stenberg -- curl, cURL, Curl, CURL. Groks URLs.
This SF.NET email is sponsored by:
Understand how to protect your customers personal information by implementing
SSL on your Apache Web Server. Click here to get our FREE Thawte Apache 
Received on 2003-01-16