Hypertext Transfer Protocol (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. HTTP follows a classical client-server model, with a client opening a connection to make a request, then waiting until it receives a response. HTTP is a stateless protocol, meaning that the server does not keep any data (state) between two requests. Though often based on a TCP/IP layer, it can be used on any reliable transport layer; that is, a protocol that doesn't lose messages silently, such as UDP.
Learn how to use HTTP with guides and tutorials.
Set-CookieHTTP header with the response. The client then returns the cookie's value with every request to the same server in the form of a
Cookierequest header. The cookie can also be set to expire on a certain date, or restricted to a specific domain and path.
http://domaina.example/) makes a request for an image on Domain B (
http://domainb.foo/image.jpg) via the
imgelement. Web pages today very commonly load cross-site resources, including CSS stylesheets, images, scripts, and other resources. CORS allows web developers to control how their site reacts to cross-site requests.
Browse through detailed HTTP reference documentation.
X-prefix; others in an IANA registry, whose original content was defined in RFC 4229. IANA also maintains a registry of proposed new HTTP message headers.
POST, and also less common requests like
Content-Security-Policyresponse header fields allows web site administrators to control resources the user agent is allowed to load for a given page. With a few exceptions, policies mostly involve specifying server origins and script endpoints.
Helpful tools and resources for understanding and debugging HTTP.
A project designed to help developers, system administrators, and security professionals configure their sites safely and securely.
© 2005–2017 Mozilla Developer Network and individual contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.