Julian Reschke wrote: > 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. > and - You may need to use the URI to perform PUT/DELETE operations - You may need the URI to resolve relative references within response headers or the message-bodyReceived on Friday, 13 August 2010 13:14:16 GMT
This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 18:49:40 GMT