HTTP stands for Hyper Text Transfer Protocol.
The name itself indicates it is used to transfer Hypertext.
Hyper text is a series of text documents which are linked to
each other through hyper links
HTTP is a protocol that that transfer hypertext from the web
server to our web browser. So we can load the page, click the links and visit
It is the way that information from all across the internet, Google,
Wikipedia……. etc. websites comes to our computer.
Actually, how this happens is, Computers have a formalized
way or language to communicate. HTTP is computer version of something like
military voice procedure. Instead of saying things like, yes I understood, you
can talk now…… HTTP communicates thing like give me this document, take this or
delete this document. It is basically the legalise way for the computers to
talk to each other and it is HTTP.
we can say as
HTTP is the Application layer protocol
used by the web browser to transmit and receive information on the internet.
HTTP means Hypertext Transfer Protocol and it is used for exchanging
information between the web-server and client. Hypertext can be all files like
image files, text files and video files etc. using HTTP protocol we can deliver
virtually all the hypertext. With the help of HTTP web-server communicate with
the browser like Google Chrome, Mozilla Firefox, and internet Explorer etc.
HTTP is the main protocol used by
World Wide Web (WWW) for communication.
HTTP explains how the messages are
edited and transmitted across the internet. HTTP protocol mainly involves 2.
So it is said to be based on client
If we type anything in bowser and
search for it, immediately the request is sent to the server.
Sever then sends the response to
the corresponding request from the client.
The port number 80 in the server has
been assigned to receive and listen the requests from the client.
The main function of HTTP is to
transmit resources across the internet.
A resource can be a file or a document written
in any available languages.
The format of the request and response message
is very much similar.
An HTTP request has mainly three parts: a)
request line, b) HTTP header, and c) an optional HTTP body.
An example of HTTP request is GET
It means client is requesting the
server to GET the abc.html file by using HTTP/1.1 protocol.
Next information needed by server is HTTP
header. HTTP header contains the information about the request and information
about the client such as browser type or connection information.
Final part of the HTTP request is HTTP body
which is optional. It is used when client want to transfer specific data to
Main Features of HTTP:
a) HTTP is connectionless protocol.
It means client or a browser makes an HTTP request and then it disconnects from
the server and waits for response from the server. The server after processing
the request sends response back to the client.
b) HTTP is media independent
protocol means any type of data can be sent by HTTP.
c) HTTP is stateless protocol means the server
and client are in touch with each other only during current request.
Main methods used by HTTP are i)
GET ii) HEAD iii) POST
GET: It is the most common method
used by HTTP. It is used to retrieve the requested information. If the
requested file is an HTML file then its content will be displayed at the
browser side. If the requested file is a dynamic ASP (Active Server Page) file,
then the server first process this file, executes its commands and finally the
output of those command is send to the requesting Browser. HEAD: This method is
almost similar to GET method but it does not return the requested data. It is
used to transfer header section, status line, server response code etc.
POST: This method is used to send
data to server and then act on it. POST methods are used when the CGI or server
side scripting is involved