cURL / Mailing Lists / curl-library / Single Mail

curl-library

RE: HTTP behavior with data > 1024 bytes

From: <Florian.PONROY_at_fr.thalesgroup.com>
Date: Mon, 11 Feb 2008 17:54:33 +0100

Hi Oleg,
 
I use Linux Ubuntu, libcurl version 7.15.5-1.
 
Hope this helps :-)

-----Message d'origine-----
De : curl-library-bounces_at_cool.haxx.se
[mailto:curl-library-bounces_at_cool.haxx.se]De la part de Oleg Covic
Envoyé : lundi 11 février 2008 17:42
À : libcurl development
Objet : Re: HTTP behavior with data > 1024 bytes

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
<http://us.rd.yahoo.com/evt=51734/*http://tools.search.yahoo.com/newsearch/c
ategory.php?category=shopping> them fast with Yahoo! Search.
Received on 2008-02-11