cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Problem with Location header redirect

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Mon, 4 Dec 2006 20:01:36 +0100 (CET)

On Mon, 4 Dec 2006, Dobromir Velev wrote:

> I applied the patch but it doesn't work in this case. cURL tries to send the
> request to the URL in the Location header, but since there is still data to
> read from this connection it will read the content from the first request,

Yes, unfortunately that doesn't really surprise me.

> This is definetely a programming bug on the website, and will be fixed,
> though it works fine in IE and Firefox. I know you're trying to keep cURL
> RFC compilant and there is no need to deal with such buggy implementations.

We break RFCs all over in order to work like the browsers, so if you can
figure out how they do I certainly wouldn't mind to adapt.

Are you *sure* that the browsers get the very same contents back as you get
with libcurl?

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