HTTP stands for Hypertext Transfer
Development of HTTP was initiated by Tim
Berners-Lee in 1989.
HTTP is Application Layer Protocol.
HTTP protocol used mainly to access data
on World Wide Web.
HTTP function is a combination of FTP
(File Transfer Protocol) and SMTP (Simple Mail Transfer Protocol).
HTTP uses the services of TCP on
port no 80.
HTTP is Stateless protocol, it means each
request considered as a new request.
It is Communication protocol, it provide
communication between client and server.
It is Request-Response protocol.
It is Connection less protocol.
An “HTTP client” is a program that
establish a connection and send a request to “HTTP server”.
Of HTTP Protocol
An “HTTP server” is also one type
of program that accept a request and send response to “HTTP Client”.
There are mainly two methods of HTTP Protocol.
In GET method only limited amount of
data can be sent, because data is sent in header.
GET method is not secure in compare to
POST method because data exposed in URL bar.
GET method is more efficient and more
used than POST method.
GET method can be bookmarked.
GET method is idempotent. That means
second request will be ignored until the response of first request will be
GET method send up to 1024 character
GET method can’t be send binary data,
audio, video or any type of image file.
Anatomy of GET Method:
In GET method, name and value pairs are joined with
equal sign and another pair of name and value are joined with ampersand.
In POST method large amount of data can
be sent because data can be sent in body part.
POST method is more secure than GET
method because data can’t be exposed in URL.
POST method is less efficient and less
used than GET method.
POST method can’t be bookmarked.
POST method is non-idempotent.
In POST method there is no limit of data
size to be sent.
In POST method we can sent Binary and
Features of http protocol:
1) Stateless protocol.it means each
request consider as a new request.
between client and server.
3)it is a request response protocol.
4)reliable tcp connection using port
1) REQUEST/RESPONSE LINE
HTTP request- line
1)Get: used for retrieving the info. or
data from the server using URL.
2)posr:used to send data or info.to the
3)head:server should not return message
body in the response.transfer status line and header section.
4)connect: connection establish between
client and server.
URI stands for uniform resource indentifier.
It is used to identify name and resources on the
URI consist 2 parts:
1)before the colon( : ) denotes schema(protocol).
2)and the part after colon depend upon the schema.
define the version of http.