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

Re: [XHR] Redirects

From: Julian Reschke <julian.reschke@gmx.de>
Date: Fri, 13 Aug 2010 15:06:09 +0200
Message-ID: <4C654341.4040901@gmx.de>
To: Anne van Kesteren <annevk@opera.com>
CC: public-webapps@w3.org, Joćo Eiras <joao.eiras@gmail.com>
On 13.08.2010 00:03, Anne van Kesteren wrote:
> ...
>> 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.
> What is the use case?
> ...

Some that come to mind quickly:

- Depending on the redirect status, you may want to stop accessing the 
original URI.

- Depending on the method, you may want to confirm with the user whether 
automatically following the redirect is ok.

- You may want to display the actual URI somewhere in the UI.

Best regards, Julian
Received on Friday, 13 August 2010 13:07:03 UTC

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