By clicking “Check Writers’ Offers”, you agree to our terms of service and privacy policy. We’ll occasionally send you promo and account related email
No need to pay just yet!
About this sample
About this sample
Words: 1154 |
Pages: 3|
6 min read
Published: Jan 15, 2019
Words: 1154|Pages: 3|6 min read
Published: Jan 15, 2019
The Hypertext Transfer Protocol (HTTP) is an application-level protocol. HTTP is used for collaborative, distributed, hypermedia information systems. This is the foundation for data communication for the World Wide Web. HTTP is a generic and stateless protocol which can be used for other purposes as well using extensions of its request methods, error codes, and headers.
HTTP is a TCP/IP based communication protocol. HTTP is used to deliver data like HTML and image files, query results, sound, video and other multimedia files on the WWW. The default port number for HTTP is 80 but we can use other port number also.
HTTP’s development was initiated by Tim Berners-Lee at CERN in 1989. HTTP’s Standards development was coordinated by the Internet Engineering Task Force (IETF) and the World Wide Web Consortium (W3C), culminating in the publication of a series of Requests for Comments (RFCs). The first definition of HTTP/1.1, the version of HTTP in common use, occurred in RFC 2068 in 1997, although this was obsoleted by RFC 2616 in 1999 and then again by RFC 7230 and family in 2014.
A later version, the successor HTTP/2.0, was standardized in 2015, and is now supported by major web servers.
HTTP works as a request–response protocol in the client–server computing model. For example, a web browser may be the client and an application running on a computer hosting a website may be the server. The client sends an HTTP request message to the server. The server,which provides resources such as HTML files and other content, or performs other functions on behalf of the client, returns a response message to the client. The response contains completion status information about the request and may also contain requested content in its message body.
HTTP is designed to permit intermediate network elements to improve or enable communications between clients and servers. HTTP is an application layer protocol designed within the framework of the Internet protocol suite. HTTP resources are identified and located on the network by Uniform Resource Locators (URLs), using the Uniform Resource Identifiers (URI’s) schemes http and https. URIs and hyperlinks in HTML documents form inter-linked hypertext documents.
There are three basic features that make HTTP a simple but powerful protocol:
The following diagram shows a very basic architecture of a web application and depicts where HTTP sits:
HTTP uses a . numbering scheme to indicate versions of the protocol. The version of an HTTP message is indicated by an HTTP-Version field in the first line. Syntax of specifying the HTTP version is as following:
HTTP-Version = “HTTP” “/” 1*DIGIT “.” 1*DIGIT Example: HTTP/1.1
Uniform Resource Identifiers (URI) are simply formatted, case-insensitive string containing name, location, etc. to identify a resource, for example, a website, a web service, etc. A Syntax of URI used for HTTP is as follows: URI = “http:” “//” host [ “:” port ] [ abc_path [ “?” query ] ]
Here if the port is empty or not given, port 80 is assumed for HTTP.
All HTTP date/time stamps MUST be represented in Greenwich Mean Time (GMT), without exception. HTTP applications are allowed to use any of the following three representations of date/time stamps: Mon, 18 Dec 2003 03:30:15 GMT ; RFC 822, updated by RFC 1123Monday, 18-Dec-03 03:30:15 GMT ; RFC 850, obsoleted by RFC 1036Mon Dec 18 18:30:15 2003 ; ANSI C’s asctime() format
We use character sets to specify the character sets that the client prefers. Multiple character sets can be listed separated by commas. If a value is not specified, the default is the US-ASCII. Example: US-ASCII
HTTP makes use of the Uniform Resource Identifier (URI) to identify a given resource and to establish a connection. Once the connection is established, HTTP messages are passed in a format similar to that used by the Internet mail [RFC5322] and the Multipurpose Internet Mail Extensions (MIME) [RFC2045]. These messages include requests from client to server and responses from server to client which will have the following format: HTTP-message = | ; http/1.0 messages HTTP requests and HTTP responses use a generic message format of RFC 822 for transferring the required data. HTTP message contains following four items: A start-line Zero or more header fields followed by CRLF An empty line indicating the end of header fields Optionally a message body
HTTP header fields provide required information about the request or response, or about the object sent in the message body. There are four types of HTTP message headers:
All the above mentioned headers follow the same generic format and each of the header field consists of a name followed by a colon (:) and the field value as follows:
The message body part is optional for an HTTP message but if it is available, then it is used to carry the entity-body associated with the request or response. If entity body is associated, then usually content-type and Content-Length headers lines specify the nature of the body associated.
Browse our vast selection of original essay samples, each expertly formatted and styled