Re: [XHR] Redirects

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 UTC