Written by Pavan Kumar on December 19, 2008
This is a particular thing most of us are not aware of. HTTP headers are the main part of HTTP request and are very important for HTTP Response. The referrer, date, time, redirection, location, server, language, age, host and many more things are included in the HTTP request / response cycle.
When you key in an url into your browser, the browser will create a HTTP Request and sends the same to the server which in return sends a HTTP response. All this HTTP header information is used for tracking of your referrals. HTTP request / response cycle can be represented as a diagram for more understanding.
Coming to the reading of HTTP headers, it cannot be done by viewing the source code or any other similar way, viewing source code will only show you the content and not header information. Request and response are all internal to browser and not possible to view. To view the HTTP header, you can make use of HTTP Viewer. This tool can be used to view only header or header along with content.
There is one limitation with this tool. It can only process http headers and not https header.
Image credit : dev.opera.com
People who liked this also read: