HTTP Request Header Host: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
|||
Line 11: | Line 11: | ||
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" 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 | The "Host" header must be present, even if it has an empty value, otherwise the request is considered invalid and the proxies handling it are required to 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. |
Latest 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 proxies handling it are required to 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.