HTTP Request Header Host: Difference between revisions

From NovaOrdis Knowledge Base
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=")
 
No edit summary
 
(One intermediate revision by the same user not shown)
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 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

https://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.23

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.