I have already googled that 505 is “HTTP Version not supported”, but still can not figure out my problem.
I have a web application with Tomcat,server side with self-signed certificate to enable HTTPS,without authenticating client. The client will authenticate server certificate.
I have analyze the wireshark packet, it seems the SSL handshark is correct.
But when i check Tomcat localhost_access_log,there will be an 505 error for the client request, also server side does not receive the client request.
Could you kindly help to give some hint on this?
172.25.21.113 - - [24/May/2012:16:28:26 +0800] "GET /updserver/update?action=signature_update&device_type=NGN&service_type=KAV&engine_ver=1.00&sig_ver=4.123&mac=0019CB72736E HTTP/1.1 " 505 -
If you make a request to Tomcat with trailing whitespace after the HTTP version (as in your example), Tomcat will respond with 505 error. Confirmed on Tomcat 7.0.27.
RFC 2616 (HTTP 1.1) says that the
HTTP-Versionis made up of"HTTP/" + digit + "." + digit. Request-Line ends with" " + HTTP-Version + CRLFwhich means no whitespace is allowed after that last digit.References: