Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
0% found this document useful (0 votes)
33 views

HTTP - HyperText Transfer Protocol - Javatpoint

The document discusses HTTP, including that it is a protocol used to access data on the World Wide Web, it can transfer various file types, and uses URLs to specify resources. HTTP uses a request-response model where the client sends a request and the server sends a response. It is connectionless, stateless, and media independent.

Uploaded by

lostone188188
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
33 views

HTTP - HyperText Transfer Protocol - Javatpoint

The document discusses HTTP, including that it is a protocol used to access data on the World Wide Web, it can transfer various file types, and uses URLs to specify resources. HTTP uses a request-response model where the client sends a request and the server sends a response. It is connectionless, stateless, and media independent.

Uploaded by

lostone188188
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

2/14/23, 10:13 AM HTTP - HyperText Transfer Protocol - javatpoint

HTTP
HTTP stands for HyperText Transfer Protocol.

It is a protocol used to access the data on the World Wide Web (www).

The HTTP protocol can be used to transfer the data in the form of plain text, hypertext, audio,
video, and so on.

This protocol is known as HyperText Transfer Protocol because of its efficiency that allows us
to use in a hypertext environment where there are rapid jumps from one document to
another document.

HTTP is similar to the FTP as it also transfers the files from one host to another host. But,
HTTP is simpler than FTP as HTTP uses only one connection, i.e., no control connection to
transfer the files.

HTTP is used to carry the data in the form of MIME-like format.

HTTP is similar to SMTP as the data is transferred between client and server. The HTTP differs
from the SMTP in the way the messages are sent from the client to the server and from server
to the client. SMTP messages are stored and forwarded while HTTP messages are delivered
immediately.

Features of HTTP:

Connectionless protocol: HTTP is a connectionless protocol. HTTP client initiates a request


and waits for a response from the server. When the server receives the request, the server
processes the request and sends back the response to the HTTP client after which the client
disconnects the connection. The connection between client and server exist only during the
current request and response time only.

Media independent: HTTP protocol is a media independent as data can be sent as long as
both the client and server know how to handle the data content. It is required for both the
client and server to specify the content type in MIME-type header.

Stateless: HTTP is a stateless protocol as both the client and server know each other only
during the current request. Due to this nature of the protocol, both the client and server do
not retain the information between various requests of the web pages.

https://www.javatpoint.com/computer-network-http 2/8
2/14/23, 10:13 AM HTTP - HyperText Transfer Protocol - javatpoint

HTTP Transactions

The above figure shows the HTTP transaction between client and server. The client initiates a
transaction by sending a request message to the server. The server replies to the request message
by sending a response message.

Messages
HTTP messages are of two types: request and response. Both the message types follow the same
message format.

Request Message: The request message is sent by the client that consists of a request line, headers,
and sometimes a body.

https://www.javatpoint.com/computer-network-http 3/8
2/14/23, 10:13 AM HTTP - HyperText Transfer Protocol - javatpoint

Response Message: The response message is sent by the server to the client that consists of a
status line, headers, and sometimes a body.

Uniform Resource Locator (URL)


A client that wants to access the document in an internet needs an address and to facilitate
the access of documents, the HTTP uses the concept of Uniform Resource Locator (URL).

The Uniform Resource Locator (URL) is a standard way of specifying any kind of information
on the internet.

The URL defines four parts: method, host computer, port, and path.

https://www.javatpoint.com/computer-network-http 4/8

You might also like