http-headers tagged requests and articles

Categorized request examples and articles tagged with [http-headers] keyword
HTTP Headers
The browser and server use HTTP headers to pass the information on data size and type, compression methods, languages, cache directives, and origin.

Connection Header
The Connection HTTP header controls whether the current network connection remains open after the transaction.

Content-Type Header
The Content-Type HTTP header is used to indicate the type of media in the body of the message.

Cross-Origin Resource Sharing (CORS)
Cross-Origin Resource Sharing (CORS) is a mechanism that provides secure communication between browsers and servers running on different origins (on different hostnames or protocols) using additional HTTP headers.

Content-Encoding Header
The Content-Encoding header is used by the server to tell the client which encoding is applied to the message body. The content encoding is mainly used for a document compression that will not lead to data loss, save bandwidth and speed up the website.

Content-Length Header
The Content-Length HTTP header is used to indicate the size of the message body, in decimal number of OCTETs. The Content-Length header is used to let the receiving party know when the current message has ended, so the connection can be closed or reused for another request.

HTTP CONNECT Method
The HTTP CONNECT method is used to create an HTTP tunnel through a proxy server.

Common HTTP Headers
The list of common HTTP headers.

Cache-Control Header
The Cache-Control HTTP header is used to specify cache conditions and duration for both requests and responses. Resources can define their own caching policy via the Cache-Control HTTP header.

Set-Cookie Header
The server sends cookies to the browser by adding the "Set-Cookie: cookie-name = cookie-value" HTTP header to the response. The browser saves cookies on the user's computer, and then sends them back to the server by adding the "Cookie: saved-cookie" header to the request.

Pragma Header
The Pragma header provides backward compatibility with HTTP/1.0 clients. It is mainly used for cache management and tells the server and intermediate caches that it needs a fresh version of the resource.

Response Header: Set-Cookie
The Set-Cookie HTTP response header sends cookies from the server to the user agent. A server sends a Set-Cookie header with the response when it receives an HTTP request.

HTTP Caching
Caching is a technique used to reduce latency and network traffic by storing a copy of a given resource and serving it back when requested.

Transfer-Encoding Header
The Transfer-Encoding header specifies the form of encoding used to safely transfer the entity over the network.

General Header: Date
Date is a general HTTP header that contains the date and time the message was sent.