HTTP
Also known as: Hypertext Transfer Protocol
Stateless request-response protocol that web browsers, servers and other clients use to request and transfer resources such as web pages and data.
HTTP, the Hypertext Transfer Protocol, is the application-layer protocol on which the World Wide Web runs. A client, such as a browser, sends a request naming a method, a resource path and headers; the server replies with a status code, headers and usually a body such as an HTML page, an image or JSON data. Common methods include GET to fetch a resource and POST to submit data, and familiar status codes include 200 for success and 404 for a resource that cannot be found. The protocol is stateless: each request stands on its own.
Tim Berners-Lee designed the first version at CERN in 1989-1991, alongside HTML and the first web browser. The Internet Engineering Task Force later standardized it: HTTP/1.0 was documented in 1996, and HTTP/1.1, which made persistent connections the default and required the Host header that enables virtual hosting, followed in 1997. HTTP/2, published in 2015, introduced a binary framing layer that lets many requests share one connection. HTTP/3, standardized in 2022, runs over QUIC, a transport built on UDP rather than TCP, to reduce delays caused by lost packets.
Because statelessness makes it hard to remember users between requests, sites add state with cookies and tokens, which also make cross-site tracking possible. Plain HTTP sends everything in readable form, so anyone on the network path can read or alter traffic. HTTPS wraps the protocol in Transport Layer Security to provide encryption and server authentication, and major browsers label unencrypted pages as not secure. Beyond web pages, HTTP is the default transport for REST APIs, webhooks and a great deal of machine-to-machine communication.
Key points
- HTTP exchanges requests and responses made of a method or status code, headers and an optional body.
- Tim Berners-Lee created the protocol at CERN as part of the original World Wide Web project.
- HTTP/2 and HTTP/3 changed how messages travel over the network while keeping the same request and response semantics.
- Plain HTTP is unencrypted, while HTTPS adds TLS to protect the confidentiality and integrity of traffic.
From the source
HTTP is an application-layer protocol for transmitting hypermedia documents, such as HTML. It was designed for communication between web browsers and web servers, but it can also be used for other purposes, such as machine-to-machine communication, programmatic access to APIs, and more.
Related entries
HTTPS
Secure version of the web's HTTP protocol that encrypts and authenticates traffic between browsers and websites using Transport Layer Security.
World Wide Web
Global information system of interlinked hypertext documents and resources identified by URLs and accessed over the internet with HTTP.
Tim Berners-Lee
British computer scientist who invented the World Wide Web at CERN and founded the World Wide Web Consortium to develop its open standards.
REST API
Web interface that follows the REST architectural style, exposing resources at URLs that clients manipulate with stateless HTTP requests.
Webhook
HTTP callback in which one system automatically sends data to another the moment a specific event occurs, instead of waiting to be asked.
WebSocket
Communication protocol that provides a persistent, two-way channel between a web browser and a server over a single TCP connection.
Transport Layer Security
Cryptographic protocol that encrypts and authenticates data sent between applications over a network, most visibly securing web traffic as HTTPS.
HTML
Markup language used to structure content on the World Wide Web, describing headings, paragraphs, links, images and interactive elements.
Featured in guides
Referenced by
Other entries that discuss or point to HTTP.