Basically what the title says, I want to get the URL and HTTP Verb from a xhr. Is this possible?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Not natively, I’m afraid. In prototypable implementations you could write your own prototype:
Don’t expect it to work in IE7 and older though.
I suppose you could do it by completely recreating the
XMLHttpRequestobject, but it would take a lot of work to get it right:Of course, you have to go to the effort of correctly binding
onreadystatechangeand setting thestatus, etc.