cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: HTTP behavior with data > 1024 bytes

From: Oleg Covic <olegc80_at_yahoo.com>
Date: Mon, 11 Feb 2008 08:42:13 -0800 (PST)

Hi Florian

I get one email and I undestand that you are using libcur to send messages over HTTP. Do you use libcurl from .NET ?

Florian.PONROY_at_fr.thalesgroup.com wrote: Hi,

I am currently using libcurl to send SOAP messages over HTTP.

When the message size is lower than 1024 bytes, the POST data is sent along
with the HTTP header, which is fine.

However, when there are more than 1024 bytes of data to send, the HTTP
header is sent first, then the POST data. I explicitely deactivated the
"Expect: 100-continue" header field, since some of our server implementation
does not support it (thus leading to a 2 seconds timeout between each send,
which is not acceptable).

Actually, the main problem of the current behavior to send the whole HTTP
message in two times is when the Nagle algorithm is activated : the HTTP
header is sent first, and the TCP ack is sent 40ms later (since the server
didn't respond anything).

So (at last!) my question is: is there a way to POST a more than 1024 bytes
message in a single shot, without using the Expect: 100-continue?

Thank you for your answer!

Regards,

-- 
Florian PONROY
Thales Land & Joint France
Tel. : +33(0)1 41 304 363
Fax : +33(0)1 41 303 560
Email : florian.ponroy_at_fr.thalesgroup.com
       
---------------------------------
Looking for last minute shopping deals?  Find them fast with Yahoo! Search.
Received on 2008-02-11