January 2019
Beginner
132 pages
3h 14m
English
Below the request line are a series of key-value pairs that provide metadata describing how the request should be handled. These metadata fields are called HTTP headers. In our simple request, made earlier, we have a single HTTP header that defines the target host we are trying to reach. This information is not required by the HTTP protocol; however, it is almost always sent in order to provide clarification on who should be receiving the request.
If you were to inspect the HTTP request sent by your web browser, you would see many more HTTP headers. The following is an example sent by a Google Chrome browser to the same example.com website:
GET /index.html HTTP/1.1Host: example.comConnection: keep-aliveCache-Control: max-age=0 ...
Read now
Unlock full access