Bug Tracker

Opened 14 years ago

Closed 13 years ago

#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:
Blocked by: Blocking:


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)

test.php (812 bytes) - added by icyhandofcrap 14 years ago.

Download all attachments as: .zip

Change History (4)

Changed 14 years ago by icyhandofcrap

Attachment: test.php added

comment:1 Changed 14 years ago by icyhandofcrap

I also tested by using


url: "someurl", error: function(e, xhr, opt, te) {





var xhr = $.ajax({

url: "someurl", error: function(e, x, opt, te) {




and I went on another computer too and it also failed.

comment:2 Changed 14 years ago by overkill28

This is not a bug, the function parameters are just in the wrong order.

error (XMLHttpRequest, textStatus, errorThrown)

comment:3 Changed 13 years ago by dmethvin

Resolution: invalid
Status: newclosed

Right, the e parameter doesn't belong there.

Note: See TracTickets for help on using tickets.