Using XHR, onreadystatechange isn't called until the final document is
found.
This means there appears to be no way to catch the final URL, or even
find out that we've been redirected.
Am I missing something? Is there any way to catch the 302 status so I
can grab the location header before it moves on to the next document?
Is there a way to grab the URL of the final document?
Cheers!
Rick Measham
If you're requesting an XML document, you can check
xhr.responseXML.documentURI, I believe.