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

[XHR] Redirects

From: Joćo Eiras <joao.eiras@gmail.com>
Date: Thu, 12 Aug 2010 14:07:50 +0100
Message-ID: <AANLkTi=E=L3=t7-YiRMfY=rQ79YQ0HwOT0v9+fNz0EPv@mail.gmail.com>
To: public-webapps@w3.org
Hi !

If a XHR follows a redirection chain, does the API provide a way to
retrieve the final url?

Could there be a way to opt-in into not following redirection chains ?

For instance, a redirectCount property, default value would be
something like Infinity (the user agent could then cap the maximum
amount of redirects), and setting it to 0 would prevent any redirect,
and setting to something greater than 0 would then limit the redirect
chain to that number.
If the last http request was 302 and the redirection prevented, then
the 302 status code and the last response headers would be returned by
the XHR obj.
Received on Thursday, 12 August 2010 13:08:23 UTC

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