Host headers are not URIs. The Host header has specific valid formats defined by RFC specifications. Here are the accepted formats: # Basic Formats ## Hostname only - Host: example.com - Host: www.example.com - Host: api.subdomain.example.com ## Hostname with port - Host: example.com:8080 - Host: localhost:3000 - Host: api.example.com:443 ## IPv4 address - Host: 192.168.1.1 - Host: 192.168.1.1:8080 ## IPv6 address (must be enclosed in brackets) - Host: [2001:db8::1] - Host: [2001:db8::1]:8080 - Host: [::1]:3000 # Important Rules - Case insensitive: Domain names in the Host header are case-insensitive * Host: Example.COM # Same as example.com - No scheme: The Host header must **NOT** include the protocol scheme * Host: https://example.com # INVALID * Host: example.com # VALID - No path/query/fragment: Only hostname and port are allowed * Host: example.com/path # INVALID * Host: example.com?query=1 # INVALID * Host: example.com#fragment # INVALID - Single value: Only one Host header is allowed per request * Host: site1.com * Host: site2.com # INVALID - multiple Host headers - Required in HTTP/1.1: Must be present in all HTTP/1.1 requests - The port number, when specified, must be a valid integer between 1-65535. If omitted, the default ports (80 for HTTP, 443 for HTTPS) are assumed.
Activity
test: Disable Host header tests. Host header is not a Uri (see server…
test: Disable Host header tests. Host header is not a Uri (see server…
test: Disable Host header tests. Host header is not a Uri (see server…
test: Disable Host header tests. Host header is not a Uri (see server…
test: Disable Host header tests. Host header is not a Uri (see server…