I’m using Jetty 7.0 embedded mode and looking for a way to force Jetty to response with HTTP 1.0 and not 1.1 (which seems to be the default).
Is there any setting I can use, to control the protocol version on the server response?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The correct way to get Jetty to send HTTP/1.0 responses is to have the client to send it HTTP/1.0 requests.
By way of justification, consider this paragraph from the HTTP 1.1 specification:
In other words, if a client sends HTTP/1.1 requests, it must be capable of dealing with HTTP/1.1 responses. If it is not, then it is violating the HTTP specification … and all bets are off.