On Wed, Mar 29, 2017 at 06:34:25AM +0000, Niklas Keller wrote:
> >From RFC 2616:
> 
> A client MUST include a Host header field in all HTTP/1.1 request messages
> . If the requested URI does not include an Internet host name for the
> service being requested, then the Host header field MUST be given with an
> empty value.
> 
> I guess an IP address is not considered an Internet host name and thus the
> Host header must be empty.

Actually, RFC 2616 has been obsoleted in relevant parts by RFC 7230,
which says any kind of authority MUST be put into host (unless the
URL is absolute) and kinds of authority also include IPv4 address
literials, IP address literials (especially IPv6) and hostnames.

So by RFC 7230, IP addresses are put into host header.


-Ilari

_______________________________________________
Acme mailing list
[email protected]
https://www.ietf.org/mailman/listinfo/acme

Reply via email to