An MIT graduate who brings years of technical experience to articles on SEO, computers, and wireless networking.
Updated on June 23, 2021Hypertext Transfer Protocol provides a network protocol standard that web browsers and servers use to communicate. You see HTTP when you visit a website because the protocol appears in the URL (for example, http://www.lifewire.com).
This protocol is similar to others, like file transfer protocol, in that it's used by a client program to request files from a remote server. In the case of HTTP, a web browser requests HTML files from a web server, which then display in the browser with text, images, hyperlinks, and related assets.
Because browsers communicate using HTTP, you can usually drop the protocol from a URL when you type it in the browser's address bar.
Tim Berners-Lee created the initial HTTP standard in the early 1990s as part of his work in defining the original World Wide Web. Three primary versions were deployed during the 1990s:
The latest version, HTTP 2.0, became an approved standard in 2015. It maintains backward compatibility with HTTP 1.1 but offers additional performance enhancements.
While standard HTTP does not encrypt traffic sent over a network, the HTTPS standard adds encryption to HTTP through the use of Secure Sockets Layer or, later, Transport Layer Security.
HTTP is an application layer protocol built on top of TCP that uses a client-server communication model. HTTP clients and servers communicate through request and response messages. The three main HTTP message types are GET, POST, and HEAD.
The browser initiates communication with an HTTP server by initiating a TCP connection to the server. Web browsing sessions use server port 80 by default, although other ports such as 8080 are sometimes used instead.
After a session is established, you trigger the sending and receiving of HTTP messages by visiting the web page.
HTTP is what's called a stateless system. This means that, unlike other file transfer protocols such as FTP, the HTTP connection is dropped after the request completes. So, after your web browser sends the request and the server responds with the page, the connection closes.
Messages transmitted over HTTP may fail for several reasons:
When these failures occur, the protocol captures the cause of the failure and reports an error code to the browser called an HTTP status line/code. Errors begin with a certain number to indicate what kind of error it is.
For example, errors with a failure code beginning with a four indicate that the request for the page cannot be completed properly, or that the request contains the incorrect syntax. As an example, 404 errors mean that a web page cannot be found; some websites even offer fun custom 404 error pages.
Was this page helpful? Thanks for letting us know!Get the Latest Tech News Delivered Every Day
Tell us why! Other Not enough details Hard to understand More from Lifewirefrom one location to another" width="360" height="240" />
Hit Refresh on Your Tech News
We and our 100 partners store and/or access information on a device, such as unique IDs in cookies to process personal data. You may accept or manage your choices by clicking below, including your right to object where legitimate interest is used, or at any time in the privacy policy page. These choices will be signaled to our partners and will not affect browsing data.
Store and/or access information on a device. Use limited data to select advertising. Create profiles for personalised advertising. Use profiles to select personalised advertising. Create profiles to personalise content. Use profiles to select personalised content. Measure advertising performance. Measure content performance. Understand audiences through statistics or combinations of data from different sources. Develop and improve services. Use limited data to select content. List of Partners (vendors)