Is the Host: header required over SSL even if the request is not HTTP/1.1?
So, if a client connects over SSL, and sends the following request:
GET / HTTP/1.0
- Should the web server throw a bad request due to the missing Host: header?
- Should the web server respond with an HTTP/1.0 200 OK response?
(the index.html file always exists, so a request to /, would never lead to 403/404)
Update:
If I disable SNI in openssl s_client
, apache works without the Host: header.
Why does it need the Host: header when SNI is on?