What is HTTP Header

HTTP stands for Hypertext transfer Protocol. Everything runs on web follows this protocol. Let’s take a simple example when you open any website, it send HTTP request to server, server respond to this request and then your browser received HTTP response. This request and response would not be possible without HTTP headers.

HTTP Header Example

You type url in your browser, then your browser sends an HTTP request to server which consists following things.

In this line

GET cannot-modify-header-information-header-already-sent-error/ HTTP/1.1

GET represents method.
cannot-modify-header-information-header-already-sent-error it represents the path
HTTP 1.1 represents the protocol used.

Rest parameters are HTTP headers. There is meaning of every line present in HTTP headers, which we go in details in my next blog post.

When server responds to this request your browser receive a response

With every response you get the HTTP status code. Status code is way to tell whether the response is successful,failed or there is some other reason.

Subscribe Our Tutorials

Get Latest Updates on Facebook

Check more HTTP status code

200 HTTP status code mean success

404 means page not found

How to see the HTTP Headers

You can see the HTTP headers by using following plugin

1. Firebug


2. Live HTTP Headers

Read about Cannot Modify header information, header already sent error

Hope this post is a good read for those who don’t know what is HTTP headers.

About WebRewrite

I am technology lover who loves to keep updated with latest technology. My interest field is Web Development.
Tagged , . Bookmark the permalink.