cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Expect:100 continue

From: Daniel Stenberg <daniel-curl_at_haxx.se>
Date: Mon, 23 Aug 2004 14:17:33 +0200 (CEST)

On Mon, 23 Aug 2004, Roman Koifman wrote:

> I'm using the libcurl 7.12.0 and trying to send some POST request. Libcurl
> is sending Expect: 100-Continue header even If I use the HTTP/1.0. Then it
> awaits (at least I think so) for 100 Continue response.
>
> IMHO this is not correct behavior for the HTTP 1.0, since 100-Continue
> mechanism is defined only for HTTP 1.1.

You are indeed correct. The attached patch should fix this flaw.

But, it should still work even when it sends this header as it times out the
waiting for a 100-reply pretty quickly.

Thanks for pointing this out!

-- 
      Daniel Stenberg -- http://curl.haxx.se -- http://daniel.haxx.se
       Dedicated custom curl help for hire: http://haxx.se/curl.html

Received on 2004-08-23