Ticket #4517 (closed bug: invalid)
XMLHttpRequest's getResponseHeader and getAllResponseHeaders is blank
| Reported by: | icyhandofcrap | Owned by: | |
|---|---|---|---|
| Priority: | major | Milestone: | 1.4 |
| Component: | ajax | Version: | 1.3.2 |
| Keywords: | Cc: | ||
| Blocking: | Blocked by: |
Description
When I attempt to read the XMLHttpRequest's headers on ajaxError, neither getResponseHeader nor getAllResponseHeaders does anything.
What I expect to get is... anything really.
Firefox is blank, IE7 and Safari fail to do anything.
Attached is a simple example in php.
Attachments
Change History
comment:1 Changed 4 years ago by icyhandofcrap
I also tested by using
$.ajax({
url: "someurl", error: function(e, xhr, opt, te) {
alert(xhr.getAllResponseHeaders());
}
});
and
var xhr = $.ajax({
url: "someurl", error: function(e, x, opt, te) {
alert(xhr.getAllResponseHeaders());
}
});
and I went on another computer too and it also failed.
Please follow the bug reporting guidlines and use jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

