Reading the website headers

Websites are the life and soul of the internet. Like living souls are made of cells, internet is made of websites. Ever since, you have been introduced to the internet, you have been writing that [http] and [www] on the url bar and then going on the desired web page. Today, we will have a look on what that stuff really means and exploring some fantastic secrets too!

Whenever you enter a website url, your web browser sends a request to the web server. Behind the scene, the HTTP protocol is doing the trick. It is nothing, but a set of rules or language in which the web server and the web browser communicate. Now, every website has headers. They are not visible in normal browsing, and you need special tools/add ons to view them. But they contain a wealth of information about a website. And often, this is a place where real geek webmaster hide some info or just casual easter egg jokes!

Well, to view website headers, you’ll need Live HTTP Headers add-on for Firefox. Other way is, to downloading an additional utility The curl utility is available on Linux, Mac OS X, and even Windows.

To view the web headers, simply start the Firefox addd on and type the web address. It will automatically catch the headers. Other method, just go to command line and type:

curl -I webaddress.com

Now comes the interesing part! You will be amazed to know, what is hidden behind the website headers of many popular websites. Let me make you see some of them.

  • If you type in curl –I slashdot.org, you’ll see that they embed random quotes from Futurama into the headers:

curl1

  • The blogging platform WordPress uses the header for a useful purpose—they recommend contacting them about a job if you’ve been able to locate the headers:

curl2

If you happen to get a job at WordPress because of this, do let us know 😛


[Editor’s Note: This is a post written by our Guest Blogger Rishabh Agarwal. He is an engineer by profession and web designer by choice along with being a Linux enthusiast. He writes on technology at Techylabs.

If you too like to write for Devils Workshop, please check this. Details about our revenue sharing programs are here.]