cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: libCurl 7.20.0 behaviour when handling HTTP 302 responses

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Tue, 13 Apr 2010 13:16:34 +0200 (CEST)

On Tue, 13 Apr 2010, Stefan Krause wrote:

> in case libCurl receives a HTTP 302 status, it automatically (if configured)
> send the HTTP request again to the URL received in the "Location" header. I
> observed, that in following GET requests to the same URL (no the new from
> "Location" header; the original one) on the same easy handle, libCurl uses
> the URL from the "Location" header received before.

No it doesn't. libcurl never remembers the location-following like that.
That's left for the app to do if it truly wants to behave as the best possible
netizen.

-- 
  / daniel.haxx.se
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette:  http://curl.haxx.se/mail/etiquette.html
Received on 2010-04-13