W3C home > Mailing lists > Public > public-webapps@w3.org > July to September 2010

Re: [XHR] Redirects

From: Anne van Kesteren <annevk@opera.com>
Date: Wed, 01 Sep 2010 08:10:00 +0200
To: "WebApps WG" <public-webapps@w3.org>, Joćo Eiras <joao.eiras@gmail.com>
Message-ID: <op.vicbevf064w2qv@anne-van-kesterens-macbook-pro.local>
On Wed, 01 Sep 2010 00:46:41 +0200, Joćo Eiras <joao.eiras@gmail.com>  
> Thank you. But there is one thing missing: the final url in case of a  
> redirect chain. Currently that is not possible to guess for non xml  
> requests or HEAD requests. My use case was about doing a HEAD and  
> reading the Location header to know if was going to be redirected. Now I  
> could set followRedirects to false and read it, but for cases where the  
> redirection chain is followed, then new url is not available.
> Something like finalUrl which when readyState is <= 1 it would have the  
> value passed to open() and after, when the value is >= 2 (headers  
> received) it would have the value of the final url.

That use case is addressed by implementing redirecting yourself.

Anne van Kesteren
Received on Wednesday, 1 September 2010 06:10:33 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 18:13:11 UTC