HTTP Request Header Host: Difference between revisions
Jump to navigation
Jump to search
(Created page with "=External= {{External|https://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.23}} =Internal= * HTTP Request =Overview=") |
|||
Line 8: | Line 8: | ||
=Overview= | =Overview= | ||
The "Host" request header specifies the Internet host and optionally port of the resource being requested, as obtained from the original URI given by the user to the user agent. If "port" is not included, it is assumed 80. | |||
The "Host" header must be present, even if it has an empty value, otherwise the request is considered invalid and the server will return a 400 Bad Request. Host is required to allow the server to differentiate between URLs when it servers multiple host names on a single IP address. |
Revision as of 22:53, 8 January 2017
External
Internal
Overview
The "Host" request header specifies the Internet host and optionally port of the resource being requested, as obtained from the original URI given by the user to the user agent. If "port" is not included, it is assumed 80.
The "Host" header must be present, even if it has an empty value, otherwise the request is considered invalid and the server will return a 400 Bad Request. Host is required to allow the server to differentiate between URLs when it servers multiple host names on a single IP address.