Side navigation
#4517 closed bug (invalid)
Opened April 11, 2009 04:43AM UTC
Closed December 10, 2009 04:09AM UTC
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: | ||
Blocked by: | Blocking: |
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 (1)
Change History (3)
Changed April 11, 2009 04:27PM UTC by comment:1
Changed July 21, 2009 02:50AM UTC by comment:2
This is not a bug, the function parameters are just in the wrong order.
error (XMLHttpRequest, textStatus, errorThrown)
Changed December 10, 2009 04:09AM UTC by comment:3
resolution: | → invalid |
---|---|
status: | new → closed |
Right, the e parameter doesn't belong there.
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.