cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: BUG: redirect_url in write-out is not purged between requests

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Thu, 19 Nov 2009 22:38:33 +0100 (CET)

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.

-- 
  / daniel.haxx.se
-------------------------------------------------------------------
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.html
Received on 2009-11-19