[XHR] Redirects

Hi !

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

b)
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