March 2018
Beginner to intermediate
410 pages
10h 40m
English
Both requests and responses contain HTTP headers. These consist of sets of key-value pairs. Normally, clients do not need to set these headers explicitly. It is typically done by the HTTP clients being used. But sometimes, you need to set some of these headers manually, to customize a request according to your needs. Following is a shot list of useful headers:
|
Header |
Description |
|
Accept |
If the resource supports multiple content type encodings, you can specify your preference using the Accept header. |
|
Cache-Control |
Controls how the response may be cached. |
|
Content-Type |
The media type of the content payload. |
|
ETag |
An entity tag is a string identifying the content. It can be a hash value of the content, ... |
Read now
Unlock full access