cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: Curl duplicating "Host:" Header on Keep-Alive Retry: Bug?

From: Daniel Stenberg <daniel-curl_at_haxx.se>
Date: Tue, 11 Jan 2005 01:02:42 +0100 (CET)

On Mon, 10 Jan 2005, Cyrill Osterwalder wrote:

> guess that curl should treat a failed keep-alive request differently from a
> redirect follow request. It should actually resend the same request again on
> a fresh socket without any other changes.

Please ignore my previous suggestion. It didn't even pass the test suite OK!

How about the attached patch? It tries to prevent the 'redirect' status of the
retried request to make it look more like the first one and thus hopefully
work better in your problematic case.

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

Received on 2005-01-11