cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: How-To use NTLM proxy authentication?

From: Daniel Stenberg <daniel-curl_at_haxx.se>
Date: Tue, 26 Apr 2005 19:55:38 +0200 (CEST)

On Tue, 26 Apr 2005, Jamie Lokier wrote:

>> This is where "Expect: 100-continue" should be used I guess. libcurl
>> doesn't add that by default for plain posts. Otherwise there's no way for
>> the server to signal error until you've sent the whole post...
>
> Do you really mean that libcurl doesn't send "Expect: 100-continue" for
> posts?

It does for most posts, but not all. This is because for small posts, libcurl
creates one single memory chunk that is sent with one send() call.

> A server certainly _can_ signal an error without waiting for the whole post,
> whether you send "Expect: 100-continue" or not.

True. Bad phrasing (or even thinking) on my part.

-- 
  Commercial curl and libcurl Technical Support: http://haxx.se/curl.html
Received on 2005-04-26