JS/jQuery get HTTPRequest request headers?
If this is for debugging purposes then you can just use Firebug or Chrome Developer Tools (and whatever the feature is called in IE) to examine the network traffic from your browser to the server. An alternative would be to use something like this script: $.ajax({ url: ‘someurl’, headers:{‘foo’:’bar’}, complete: function() { alert(this.headers.foo); } }); … Read more