HTTP: value are joined with ampersand. Example: http://www.example.com/register.htm?name=ABC=PQR

HTTP:

·        
HTTP stands for Hypertext Transfer
Protocol.

We Will Write a Custom Essay Specifically
For You For Only $13.90/page!


order now

·        
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.

 

Version:

 

Year

     
HTTP Version

1991

0.9

1996

1.0

1997

1.1

2015

2.0

 

Features:

 

·        
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.

 

Work:

·        
An “HTTP client” is a program that
establish a connection and send a request to “HTTP server”.

Working
Of HTTP Protocol

·        
An “HTTP server” is also one type
of program that accept a request and send response to “HTTP Client”.

 

HTTP Methods:

There are mainly two methods of HTTP Protocol.

1.      GET

2.      POST

GET:

·        
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
delivered.

·        
GET method send up to 1024 character
only.

·        
GET method can’t be send binary data,
audio, video or any type of image file.

Anatomy of GET Method:

                
Name1=value1=value2=value3

In GET method, name and value pairs are joined with
equal sign and another pair of name and value are joined with ampersand.

Example:

            http://www.example.com/register.htm?name=ABC=PQR

POST:

·        
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
ASCII data.

 

 

 

Features of http protocol:

1) Stateless protocol.it means each
request consider as a new request.

2)communication protocol.communication
between client and server.

3)it is a request response protocol.

4)reliable tcp connection using port
no. 80.

5)connectionless protocol.

 

HTTP ASPECT:

1) REQUEST/RESPONSE LINE

2)MESSAGE HANDELER

3)METHODS

4)STATUS CODE

 

1)request line

?                   
HTTP request- line

message structure:

start line:

 1)request method

2)request URI

3)HTTP version

                Request
method:

1)Get: used for retrieving the info. or
data from the server using URL.

2)posr:used to send data or info.to the
server.

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.

Example:

GET/index.html HTTP/1.1

Host :www.gmail.com

                Request
URI:

URI stands for uniform resource indentifier.

It is used to identify name and resources on the
internet.

URI consist 2 parts:

1)before the colon( : ) denotes schema(protocol).

2)and the part after colon depend upon the schema.

                Eg:
http://www.onlinesbi.com

                                HTTP
version:

define the version of http.

Eg: HTTP/0.9

 

2)response line

message structure:

 

                 status line:

It contains :

1}HTTP version

                eg: HTTP /1.1

2}status code

                eg:202

3}reason phrase

                eg:accepted

example:  HTTP/1.1
202 Accepted

 

 

 

 

3)MESSAGE HANDLER

http messages also passes in MIME and
SMTP.

Messages include request from client to
server and response from server to client.

It consists:

1} start line

2}header fields

3}message body

 

            1} start line

            Syntax: start line=request
line|status line

        In this syntax,request line is sent by client ex: GET /hello.htm HTTP/1.1

 

        And status line is sent by server.ex: HTTP/1.1 200 OK

 

            2} header fields:

            That consists field name,field value,size
limits,request fields,response fields

Ex:

Header field-name

Description

example

Status

Accept

Media type acceptable for response.

Accept:text/plain

permanent

 

3} message body:

Ex:

my<br /> document

hello

 

3 methods:

Get post delete put
trace connect

 

4status codes:

 

 

x

Hi!
I'm Harold!

Would you like to get a custom essay? How about receiving a customized one?

Check it out