curl-users
Re: BUG: redirect_url in write-out is not purged between requests
Date: Fri, 20 Nov 2009 09:04:06 +0100
On 09-11-19 22:38, Daniel Stenberg wrote:
> On Thu, 19 Nov 2009, Stefan Pettersson wrote:
>
>> PROBLEM: curl remembers the value of the previous %{redirect_url} and
>> outputs it for every consecutive write-out even though no redirect was
>> made for those requests.
>
> I tried it just now with curl 7.19.7 and I cannot repeat it:
>
> $ curl -s -w '%{redirect_url}\n' haxx.se curl.haxx.se -o /dev/null -o /dev/null
>
> The first url redirects, the second one doesn't.
Indeed, it seems to be fixed in 7.19.7. Never mind then. :-)
7.18.2
$ curl -s -w '%{redirect_url}\n' haxx.se curl.haxx.se -o /dev/null -o /dev/null
http://www.haxx.se/
http://www.haxx.se/
7.19.7
$ ./curl -s -w '%{redirect_url}\n' haxx.se curl.haxx.se -o /dev/null -o
/dev/null
http://www.haxx.se/
-- Stefan Pettersson ------------------------------------------------------------------- List admin: http://cool.haxx.se/list/listinfo/curl-users FAQ: http://curl.haxx.se/docs/faq.html Etiquette: http://curl.haxx.se/mail/etiquette.htmlReceived on 2009-11-20