View HTTP headers in Google Chrome?

前端 未结 8 1905
春和景丽
春和景丽 2020-11-22 03:05

Till 9.x, the headers were under the resources in the Developer Tools, but now I can\'t find it anywhere.

8条回答
  •  春和景丽
    2020-11-22 03:41

    My favorite way in Chrome is clicking on a bookmarklet:

    javascript:(function(){function read(url){var r=new XMLHttpRequest();r.open('HEAD',url,false);r.send(null);return r.getAllResponseHeaders();}alert(read(window.location))})();
    

    Put this code in your developer console pad.

    Source: http://www.danielmiessler.com/blog/a-bookmarklet-that-displays-http-headers

提交回复
热议问题