On Wed, 01 Sep 2010 00:46:41 +0200, João Eiras <joao.ei...@gmail.com>
wrote:
Thank you. But there is one thing missing: the final url in case of a
redirect chain. Currently that is not possible to guess for non xml
requests or HEAD requests. My use case was about doing a HEAD and
reading the Location header to know if was going to be redirected. Now I
could set followRedirects to false and read it, but for cases where the
redirection chain is followed, then new url is not available.
Something like finalUrl which when readyState is <= 1 it would have the
value passed to open() and after, when the value is >= 2 (headers
received) it would have the value of the final url.
That use case is addressed by implementing redirecting yourself.
--
Anne van Kesteren
http://annevankesteren.nl/