The browser can send headers to the server. Most headers are optional.
The following table lists some of the commonly used request headers.
Table 8–1 Common Request Headers
Request Header |
Description |
---|---|
Accept |
File types the browser can accept. |
Authorization |
Used if the browser wants to authenticate itself with a server. Information such as the user name and password are included. |
User-Agent |
Name and version of the browser software. |
Referer |
URL of the document where the user clicked the link. |
Host |
Internet host and port number of the resource being requested. |