Submit your breaking news stories and original articles to us by contacting us
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-aliveHTTP/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.comHTTP/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?
Category: Uncategorized
22 Responses for "View HTTP Request and Response Headers with LiveHTTPHeaders"
September 28th, 2004 at 6:23 pm
1Looks 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.
September 28th, 2004 at 6:47 pm
2Personally, 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.
September 28th, 2004 at 7:24 pm
3Thanks 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.
September 28th, 2004 at 7:54 pm
4Actually, I’ve been using it for some months now and find it very useful when debugging redirects and doing SEO ;-)
September 28th, 2004 at 8:14 pm
5JC: 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).
October 1st, 2004 at 3:33 am
6Unfortunately, I’ve been without LiveHTTPHeaders for some weeks now because it is not supported on recent versions of Firefox including 1.0PR.
October 1st, 2004 at 10:38 am
7Actually, it works fine on 1.0PR. Go to their website and download the latest release. Might help to uninstall the old versions, too.
October 18th, 2004 at 3:51 am
8love it.
i wish all browsers had this functionality as standard.
October 20th, 2004 at 5:23 pm
9If you have a problem getting ieHTTPHeaders to run, let me know. I’d love to help you out.
/ Jonas - author of ieHTTPHeaders
July 25th, 2005 at 9:09 am
10http://need.imoney555.com/online–money__makers/ countyensconcedundeveloped
August 3rd, 2005 at 11:04 pm
11http://denver.denrer.com/jsfxhraz/ palmsprogrammedvideotapes
August 7th, 2005 at 9:42 am
12http://www.kulu-best.com/1973501/ blistersdoorsinhibitions
August 11th, 2005 at 6:06 am
13http://bestcolleges.ivtcscs.org hormoneslyricsquenched
August 14th, 2005 at 2:31 am
14http://educationloan.ivtcscs.org/yq6w5/ agentmanhoodragged
August 23rd, 2005 at 9:06 am
15http://will.hollywoodtheater.org encouragedhuskypointing
August 24th, 2005 at 10:26 am
16http://homeloan.americasparty.org/oaks/ clothinggamessickening
August 26th, 2005 at 5:39 pm
17http://businessinsurance.mentorsverige.org/fvpnv0a/ driverfondlingstomach
August 29th, 2005 at 2:25 pm
18http://loanequity.m-moore.org/7vqjn00ft/ meetspluckedsmirk
August 31st, 2005 at 1:45 pm
19http://extra.caclbca.org/money-making-money/ exploredtroubleview
September 15th, 2005 at 6:52 am
20http://slip.boseinstitute.org/6777574/ hadninvitingpole
December 19th, 2005 at 9:13 am
21Your site looks great!!!!!!!!!! Please, look at my ;)
October 29th, 2006 at 1:00 pm
22“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
RSS feed for comments on this post
Leave a reply