Bug Tracker

Opened 8 years ago

Closed 7 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.

Change History (3)

comment:1 Changed 8 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 7 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 7 years ago by dmethvin

  • Resolution set to invalid
  • Status changed from new to closed

Right, the e parameter doesn't belong there.

Note: See TracTickets for help on using tickets.