Sunday, 8 July 2012

HTTP Protocol

 HTTP : HyperText Transfer Protocol.

It is a web layer protocol. It is based on client server model.
Client : Browser that requests, receives, “displays” Web objects.
Server : Web server sends objects in response to requests.
See the figure below :-




We have two versions of http protocol one is HTTP 1.0 and 
HTTP 1.1
HTTP  is stateless which means it does not  maintain any information.
For example it does not maintain any information like how many times clients request the same object.

We have two types of HTTP messages :-
1. Request Message 
2. Response Message

Request message contains a request line and header lines :-


Response message  contains a status line and a header lines and the data :-


















So this is how the browser works when we type the URL.

No comments:

Post a Comment