http-headers tagged requests and articles

Categorized request examples and articles tagged with [http-headers] keyword
Send Custom Headers With GET Request
This page shows how to send a GET request with custom HTTP headers to the API endpoint. Try it yourself with ReqBin online HTTP Client.
http-headers http-request get-request custom-header request-header get-method

Close Connection Example
This page shows how to tell the server that the client doesn't want to keep the connection open by sending 'Connection: close' header.
connection-close http-headers connection-header get-request get-method request-header

HTTP Headers to Prevent Caching
The correct minimum set of HTTP headers to prevent caching that works across all servers and proxies.
http-headers prevent-caching proxy request-header get-request get-method caching

GET Request with Cookies in header to get JSON
This page shows how to send a GET request with HTTP cookies in the header to get JSON. Try it yourself with ReqBin online HTTP Client.
get-request cookies json http-headers get-method rest-api request-header

POST JSON with Custom Headers
This page shows how to POST a JSON string with custom HTTP headers. Try it yourself with ReqBin online HTTP Client.
post-request json custom-header http-headers

GET Request with Cookie Header
This page shows how to send a GET request with the HTTP Cookie header. Try it yourself with the ReqBin online HTTP client.
get-request http-headers cookies get-method request-header

OPTIONS Request by Curl
An Example of Sending OPTIONS Request with Curl
curl options-request origin-header request-header http-headers options-method

GET With Cache-Control
This page shows the result of the GET request with the Cache-Control HTTP Header. Try it yourself with ReqBin online HTTP Client.
get-request cache-control http-headers

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.
http-headers response-headers entity-headers http-protocol request-header

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.
http-headers http-request cors

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

Connection Header
The Connection HTTP header controls whether the current network connection remains open after the transaction.
http-headers connection keep-alive

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-headers content-length

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.
http-headers content-encoding accept-encoding

Common HTTP Headers
The list of common HTTP headers.
http-headers common-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.
http-headers prevent-caching cache-control cache

The HTTP CONNECT method is used to create an HTTP tunnel through a proxy server.
http-headers connect-request proxy tunnel

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

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.
cookies set-cookie http-headers

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.
http-headers cache-control http-caching

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.
http-headers cookies set-cookie

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.
http-headers pragma

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