Can Tomcat accept HTTP 1.1 requests without a Host header?
问题 HTTP 1.1 states: "A client MUST include a Host header field in all HTTP/1.1 request messages" However, the machines I am working on send out this exact POST (containing coordinates), which I do not have access to change: POST /touch HTTP/1.1 Content-type: application/x-www-form-urlencoded Content-Length: <n> x=<int x>&y=<int y> Tomcat 7 immediately responds with 400 Bad Request due to the lack of a Host header field, and the POST never gets to my servlet. Is there any way I can avoid this