Skip to content

Instantly share code, notes, and snippets.

@akost
Created September 11, 2015 23:02
Show Gist options
  • Save akost/b1fc7189ea5dc291b79e to your computer and use it in GitHub Desktop.
Save akost/b1fc7189ea5dc291b79e to your computer and use it in GitHub Desktop.
Bookmarklet to show all page headers
javascript:(function(){function%20read(url){var%20r=new%20XMLHttpRequest();r.open('HEAD',url,false);r.send(null);return%20r.getAllResponseHeaders();}alert(read(window.location))})();
@akost
Copy link
Author

akost commented Sep 11, 2015

Open bookmark manager in your browser, create new bookmark, paste this in URL field.

Click this bookmark on page which headers you'd like to see.

screen shot 2015-09-11 at 4 09 00 pm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment