How to get response url in XMLHttpRequest?
问题 There is a page (url), I request it by XMLHttpRequest, but I'm not getting response from requested url, It's directing request to another page, requesting --- > page.php getting reponse from > directedpage.php and the question is how can I get response url? (directedpage.php in example) 回答1: The final URL (after following all redirects) is available in the responseURL attribute of a XMLHttpRequest instance. This feature is new and only supported in Firefox 32 stable in September 2014 [ref]