The HTTP Host represents the domain name of the server. It may also represent the Transmission Control Protocol (TCP) port number which the server uses. Defining the port number is optional, the default value is considered. For example, “80” is assigned as the port number for an HTTP URL when there is no port number specified. The HTTP Host header is a request type header. The host header field must be sent in all HTTP/1.1 request messages. If a request message does not have any header field or more than one header field, a 400 Bad Request is sent.
Directives: The HTTP header Host accepts two directives mentioned above and described below:
Note: You can check any website hoster in this link.
- Host for GeeksforGeeks cdn page.
- Host for GeeksforGeeks home page.
Supported Browsers: The browsers compatible with HTTP Host header are listed below:
- Google Chrome
- Internet Explorer
- Mozilla Firefox
- HTTP headers | Access-Control-Expose-Headers
- HTTP headers | Access-Control-Allow-Headers.
- HTTP header | X-Forwarded-Host
- HTTP headers
- HTTP headers | Age
- HTTP headers | Allow
- HTTP headers | Via
- HTTP Headers | TE
- HTTP headers | Accept
- HTTP headers | Range
- HTTP headers | Trailer
- HTTP headers | X-Forwarded-For
- HTTP headers | If-None-Match
- HTTP headers | Set-Cookie2
- HTTP headers | Connection
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to firstname.lastname@example.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.