// http header · request header

Host

Domain of the server (required in HTTP/1.1)

What the Host header does

Host names the domain (and optional port) the request is for. It's mandatory in HTTP/1.1 because one server/IP can host many sites (virtual hosting), and the server uses Host to route to the right one.

Example

Host: devutilsnow.com

Where it's used

Host is a request header. Request headers are sent by the client to describe the request and what the client can accept.

Other request headers