Tool to view response headers [closed]

2019-01-21 04:48发布

问题:

What is the best way to view the HTTP response headers from a request against a particular URL? Telnet or is there some other really good command or tool?

回答1:

I use the httpfox Firefox extension to view all HTTP requests and responses (including header and body) initiated from the web browser in the interval I specify (by pressing the start-recording and the stop-recording buttons). httpfox presents the data in a structured way in which I can quickly find the request I am interested in. It nicely complements LiveHTTPHeaders, because httpfox can view requests in the past as well.



回答2:

I find that Fiddler is my weapon of choice, although there are firefox plugins as well. Fiddler will show you all the HTTP Requests, their response status, all the headers, with different views (raw, hex, image), a timeline view, HTTPS Connects, everything.



回答3:

On Linux I use:

wget -S [url] 

This gets the file and shows all headers sent by the server.

On Windows one can use the same command if Cygwin is installed; either on regular command prompt, if the environment variables were properly adjusted, or through the Cygwin command window.



回答4:

  • HttpFox for Firefox is pretty good. It will show the headers in real time. I prefer it to Live HTTP Headers.
  • Microsoft Fiddler for Internet Explorer is a web debugger that logs all HTTP traffic between your computer and the Internet. Fiddler allows you to inspect all HTTP traffic, set breakpoints, and fiddle with incoming or outgoing data
  • Wireshark is a complete network protocol analyzer. It is good, but it might be overkill if HTTP headers is all that are required. It has problems if the client and server are on the same machine.


回答5:

Using a recent version of Firefox (19.0 in my case), going to menu Tools -> Web Developer -> Web Console (Ctrl + Shift + K on Windows) then refreshing the page produces a log of requests.

Then clicking on one of the first GET requests, the one with the URL of the page, opens a box with information about it, including request and response headers. It works out of the box, no need for fancy-shmancy add-ons any more.



回答6:

Check out httpie, a very nice Python tool:

You can use the --headers option to view only headers:



回答7:

The Firebug addon for Firefox is the easiest way I think.



回答8:

For Internet Explorer, Fiddler will work. Or you can go all out with Wireshark.



回答9:

There is a better choice (in my point of view)

It's a Firefox extension calle HTTPfox. You can not only see the header but much more information. It´s a very complete HTTP analyzer

https://addons.mozilla.org/en-US/firefox/addon/6647



回答10:

If you are familiar with the developer tools in your browser, open the network tab on the developer tools, refresh the page, then click on the headers tab. The response headers will be listed. For instance this page sends this header:

HTTP/1.1 200 OK
Cache-Control: public, max-age=60
Content-Type: text/html; charset=utf-8
Content-Encoding: gzip
Expires: Fri, 01 Mar 2013 02:00:20 GMT
Last-Modified: Fri, 01 Mar 2013 01:59:20 GMT
Vary: *
X-Frame-Options: SAMEORIGIN
Date: Fri, 01 Mar 2013 01:59:19 GMT
Content-Length: 13555


回答11:

I found a good tool to do it for Firefox called Live HTTP Headers.



回答12:

There is a great addon/plugin/extension called Web Developer from Chris Pederick.

It works with Chrome, Firefox and Opera and has mighty dev functions and also a possibility to 'View Response Headers'. You can find it within the tab 'Information'.



回答13:

If you aren't looking to do it on your machine, you can use any number of online applications that do it for you.

  1. Rex Swain's HTTP viewer
  2. http://web-sniffer.net/: This one is a bit more flexible with regard to the app layer protocol (HTTP/S)
  3. Ask Apache: This one lets you customize your request a lot more.


回答14:

If you are looking for an online tool View-Http-Request-and-Response-Headers is great



回答15:

On Internet Explorer, inside Developer Tools (press F12), go to the Network tab and press "Start Capturing". Refresh the page, click on "Go to detailed view" and you will get a very nice overview of the request and response data.



回答16:

burpsuite is a free tool, Java-based and runs on all platforms.