cURL / Mailing Lists / curl-library / Single Mail


Re: libCurl 7.20.0 behaviour when handling HTTP 302 responses

From: Daniel Stenberg <>
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

List admin:
Received on 2010-04-13