View HTTP Request and Response Headers with LiveHTTPHeaders


 

Ever wonder what secrets your browser tells the webserver? Or what the webserver whispers back when you’re not looking? OK, maybe you don’t, but as soon as you start writing a web application and have problems with sessions, cookies, forms, or anything else that happens mysteriously between the time you hit “submit” and the time the response comes back, you will. Or setting up gzip… god that’s a pain. :-) But hey, this is a secret! How can you find it?

Well, in most languages there’s a way to dump out some of the bits and pieces from the headers, but getting both request and response can be a bit of a pain. But you don’t need to worry about that, now… just use LiveHTTPHeaders.

It’s a pretty simple tool. You set it up as a sidebar or have it open in a new tab in FireFox or Mozilla, and when you hit a page, it gives you your request and the server’s response headers. You can leave images, css, etc in or filter them out via regex.

Here’s an example:

GET http://forevergeek.com/ HTTP/1.1
Host: forevergeek.com
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; rv:1.7.3) Gecko/20040913 Firefox/0.10
Accept: text/xml, application/xml, application/xhtml+xml, text/html;q=0.9, text/plain;q=0.8, image/png, */*;q=0.5
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 300
Proxy-Connection: keep-alive

HTTP/1.x 200 OK
Date: Tue, 28 Sep 2004 17:01:15 GMT
Server: Apache
Content-Type: text/html
Content-Length: 31837
Age: 16759

Here’s another one with a post request:

POST http://forevergeek.com/cgi-bin/mt/mt-search.cgi HTTP/1.1
Host: forevergeek.com
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; rv:1.7.3) Gecko/20040913 Firefox/0.10
Accept: text/xml, application/xml, application/xhtml+xml, text/html;q=0.9, text/plain;q=0.8, image/png, */*;q=0.5
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 300
Proxy-Connection: keep-alive
Referer: http://forevergeek.com/
Cookie: user=JC(rest removed)
Content-Type: application/x-www-form-urlencoded
Content-Length: 26
search=freeflatscreens.com

HTTP/1.x 200 OK
Date: Tue, 28 Sep 2004 21:44:38 GMT
Server: Apache
Pragma: No-Cache
Content-Type: text/html; charset=ISO-8859-1
Content-Length: 3919
Age: 2

So, grab it, make your life easier. Oh, I should note there’s a plugin for IE that’s supposed to do about the same thing, but I didn’t have much luck with it, which sucks, because I use IE more than I do firefox, though between LiveHTTPHeaders and the Web Developer Toolbar, that’s changing.

I’m curious… did this solve a problem for you? Do you already use this, or something else? What do you guys use?


 

About

24 Responses to View HTTP Request and Response Headers with LiveHTTPHeaders

  1. JC says:

    Looks like there are some good HTTP header links in the google ads, too. Assuming they stay there instead of getting overwritten by the usual g e e k related ads.

  2. Personally, I’ve always used Rex Swain’s HTTP Viewer, but LiveHTTPHeaders looks cool and I’m definitely going to try it out.

    Thanks for the heads-up.

  3. JC says:

    Thanks for the link, Jonathon. That’s cool for public sites, but won’t work very well on a corporate intranet, or a non-public under-development site. Hope LiveHTTPHeaders helps fill those gaps for you. :-)

    I remember having some software product way back when that would catch the headers on the way in and out but I can’t remember what it was called… just that it worked nicely once it was set up, but was a pain to set up and a pain to remove because it had to serve as a proxy and I’m inside a corporate network which already has a proxy so I had to change my settings every time I used it.

  4. dusoft says:

    Actually, I’ve been using it for some months now and find it very useful when debugging redirects and doing SEO ;-)

  5. JC: You’re right, I forgot all about the secure services we might want to test.

    LiveHTTPHeaders is now installed on my PC. I will probably use it in place of the HTTP Viewer as it is so much more configurable (I live that you can save a record of the transactions too).

  6. mmj says:

    Unfortunately, I’ve been without LiveHTTPHeaders for some weeks now because it is not supported on recent versions of Firefox including 1.0PR.

  7. JC says:

    Actually, it works fine on 1.0PR. Go to their website and download the latest release. Might help to uninstall the old versions, too.

  8. andrew stuart says:

    love it.

    i wish all browsers had this functionality as standard.

  9. Jonas Blunck says:

    If you have a problem getting ieHTTPHeaders to run, let me know. I’d love to help you out.

    / Jonas – author of ieHTTPHeaders

  10. Your site looks great!!!!!!!!!! Please, look at my ;)

  11. JC says:

    “Are there any services/apps to help prevent from giving out such information?”
    Write your own webserver that doesn’t comply with the HTTP protocol, and a browser that can talk to it, and convince everyone to use your stuff?

    These aren’t really secrets, they’re just the hidden packets of information that the browser and server send to each other to control the browsing process

  12. Adam says:

    I like to use this HTTP Request and Response Headers to send and view header to/from URLs.
    Its free and have very easy interface.

  13. Adam says:

    I want to suggest this free http testing tool using this tool you can send different HTTP request with different options/protocols/header/cache and view the text Response from any URL.
    Actually you can see if the you getting the right headers from the server
    http://soft-net.net/SendHTTPTool.aspx

Leave a Comment

Your email address will not be published.

*