HTTP error code 505

前端 未结 2 652
夕颜
夕颜 2020-12-30 08:07

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

2条回答
  •  执笔经年
    2020-12-30 08:55

    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-Version is made up of "HTTP/" + digit + "." + digit. Request-Line ends with " " + HTTP-Version + CRLF which means no whitespace is allowed after that last digit.

    References:

    • HTTP-Version: http://www.w3.org/Protocols/rfc2616/rfc2616-sec3.html#sec3.1
    • Request-Line: http://www.w3.org/Protocols/rfc2616/rfc2616-sec5.html#sec5.1

提交回复
热议问题