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

Re: [XHR] Redirects

From: Adam Barth <w3c@adambarth.com>
Date: Thu, 12 Aug 2010 15:14:53 -0700
Message-ID: <AANLkTimOfFQsWLi_05u92rUi-sT3yuyeg_wS3+2+EHp+@mail.gmail.com>
To: Anne van Kesteren <annevk@opera.com>
Cc: public-webapps@w3.org, Joćo Eiras <joao.eiras@gmail.com>
On Thu, Aug 12, 2010 at 3:03 PM, Anne van Kesteren <annevk@opera.com> wrote:
> On Thu, 12 Aug 2010 15:07:50 +0200, Joćo Eiras <joao.eiras@gmail.com> wrote:
>> Hi !
>>
>> a)
>> If a XHR follows a redirection chain, does the API provide a way to
>> retrieve the final url?
>
> Apart from document.responseXML.URL I do not think so. And I'm not sure if
> document.responseXML.URL is supposed to work.

I've run into this limitation before as well.  Unfortunately,
responseXML.URL doesn't get populated if the response isn't XML.  The
use case is I want to know where the response came from (as opposed to
where the first request in the redirect chain went).  :)

Adam
Received on Thursday, 12 August 2010 22:15:48 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 18:49:40 GMT