JS/jQuery get HTTPRequest request headers?
问题 Using getAllResponseHeaders in the xhr object, is possible to get all the response headers after an ajax call. But I can't found a way to get the Request headers string, is that possible ? 回答1: 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'},