You need to be logged in to post in the forums. If you do not have an account, please sign up first.
Quickly checked with
works as expected, e.g. alerts all response headers.
>>> var xhr = new XMLHttpRequest();
undefined
>>> xhr.onload=function(){alert(this.getAllResponseHeaders());};
[object Function]
>>> xhr.open('GET', location.href)
undefined
>>> xhr.send()
null
works as expected, e.g. alerts all response headers.
Originally posted by aleto:
Quickly checked with
>>> var xhr = new XMLHttpRequest(); undefined >>> xhr.onload=function(){alert(this.getAllResponseHeaders());}; [object Function] >>> xhr.open('GET', location.href) undefined >>> xhr.send() null
works as expected, e.g. alerts all response headers.
Thanks. I run into 'undefined', and didn't tested anything more.