cURL / Mailing Lists / curl-library / Single Mail

curl-library

HTTP behavior with data > 1024 bytes

From: <Florian.PONROY_at_fr.thalesgroup.com>
Date: Mon, 11 Feb 2008 16:47:28 +0100

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
Received on 2008-02-11