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?
-
8URLs don't have a "header" per se, requests and responses do. A request is issued against a particular resource, identified by a URL. Are you asking for a tool which shows the response headers returned from a particular request against some URL? – Rob Apr 30 '09 at 21:58
-
Thought so, but the wording wasn't quite clear. – Rob Apr 30 '09 at 22:00
16 Answers
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.

- 99,986
- 30
- 138
- 174
-
1In their site, they offer to install some addons but after virustotal test, there's a trojan hic http://www.virustotal.com/file-scan/report.html?id=e44e811581ff40382b7a0da6244f89918b4577253e5f3287ecc77c7012533cad-1320172710 – Nam G VU Nov 08 '11 at 04:03
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.

- 80,836
- 20
- 110
- 183
-
8Don't need a plugin anymore, it's built-in: https://developer.mozilla.org/en-US/docs/Tools/Web_Console – odigity Oct 02 '14 at 20:37
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.

- 7,502
- 6
- 51
- 82

- 10,481
- 5
- 36
- 46
-
3
-
-
In order to make wget work you need to install it. This is easy with brew. If you don't have that it might be better to use curl instead because it comes with Mac OS (don't know since when it's included) – Norbert Hartl Dec 01 '14 at 10:36
- 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.

- 30,738
- 21
- 105
- 131

- 48,038
- 36
- 121
- 139
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.

- 30,738
- 21
- 105
- 131

- 22,495
- 17
- 107
- 124
-
1Web Console is nice but has several problem that I described in the second paragraph here: http://aegif-labo.blogspot.jp/2013/04/how-to-get-https-headers.html These are minor problems, so I agree that Web Console is the first tool to try. – Nicolas Raoul Apr 04 '13 at 07:22
The Firebug addon for Firefox is the easiest way I think.

- 30,738
- 21
- 105
- 131

- 2,565
- 1
- 16
- 14

- 30,738
- 21
- 105
- 131

- 44,864
- 6
- 88
- 112
-
2FWIW, you can watch traffic from ANY web browser (or any other client which supports proxies) using Fiddler. – EricLaw Jun 30 '09 at 21:04
-
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

- 413
- 4
- 11
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

- 5,300
- 4
- 31
- 46
burpsuite is a free tool, Java-based and runs on all platforms.

- 30,738
- 21
- 105
- 131

- 1
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'.

- 43
- 1
- 6
If you aren't looking to do it on your machine, you can use any number of online applications that do it for you.
- Rex Swain's HTTP viewer
- http://web-sniffer.net/: This one is a bit more flexible with regard to the app layer protocol (HTTP/S)
- Ask Apache: This one lets you customize your request a lot more.

- 4,855
- 3
- 35
- 44
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.

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

- 30,738
- 21
- 105
- 131

- 24,088
- 23
- 61
- 81