Error 505 Http Not Supported
Contents |
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About urllib2 httperror http error 505 http version not supported Us Learn more about Stack Overflow the company Business Learn more about hiring developers 505 http version not supported tomcat or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack 505 http version not supported java Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up HTTP error code 505 up vote 8
505 Http Error Code
down vote favorite 3 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 ftp error 505 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 - tomcat ssl share|improve this question asked May 24 '12 at 8:57 Simon Wang 77761333 Is there really a space after "HTTP/1.1" in the request line? I wonder if that could be the problem. –Christopher Schultz May 24 '12 at 14:49 Related problem: java.io.IOException: Server returns HTTP response code 505 –sleske May 21 '15 at 13:08 add a comment| 2 Answers 2 active oldest votes up vote 12 down vote accepted 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. 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 share|improve this answer edited May 24 '12 at 14:59 answered May 24 '12 at 14:50 Christopher Schultz 9,26022539
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss error 505 google play the workings and policies of this site About Us Learn more
Error 505 Internal Server Error
about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack
Error 505 Bad Gateway
Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping http://stackoverflow.com/questions/10734205/http-error-code-505 each other. Join them; it only takes a minute: Sign up HTTP/1.1 505 HTTP Version Not Supported up vote 9 down vote favorite 1 I'm running a PHP script to grab a web page. It worked fine with many sites, but with one site it fails, returning an error saying "HTTP/1.1 505 HTTP Version Not Supported". This is http://stackoverflow.com/questions/27480720/http-1-1-505-http-version-not-supported (part of) my script: for($i = 0; $i < 1; $i++) { $page = file_get_contents("http://www.lovelybooks.de/stoebern/empfehlung/romantic fantasy/?seite=$i"); // do something with $page } Many answers recommend setting the HTTP version explicity. I have tried setting 0.9, 1.0 and 1.1, but it did not change anything. And actually the headers seems to show that the HTTP version requested by my browser and that expected by the server match: Reply headers: HTTP/1.1 200 OK Date: Mon, 15 Dec 2014 09:01:15 GMT Server: Apache X-Powered-By: PHP/5.4.35 Keep-Alive: timeout=2, max=200 Connection: Keep-Alive Transfer-Encoding: chunked Content-Type: text/html Request headers: GET /path/script.php HTTP/1.1 Host: www.mydoman.de User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:34.0) Gecko/20100101 Firefox/34.0 Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 Accept-Language: de,en-US;q=0.7,en;q=0.3 Accept-Encoding: gzip, deflate DNT: 1 Authorization: Basic MjQwMjE5Njc6MDcwNjIwMDc= Connection: keep-alive Cache-Control: max-age=0 What else can be wrong? php http file-get-contents share|improve this question asked Dec 15 '14 at 9:17 what 2951845 add a comment| 2 Answers 2 active oldest votes up vote 10 down vote accepted Replace the space in the URL with its percent-encoding: $page = file_get_contents("http://www.lovely
it is unable or unwilling to complete the request error 505 using the same major version as the client, as described in Section 2.6 of RFC7230, other than with this error message. The 505 http version server SHOULD generate a representation for the 505 response that describes why that version is not supported and what other protocols are supported by that server. Source: RFC7231 Section 6.6.6 505 Code References Rails HTTP Status Symbol :http_version_not_supported Go HTTP Status Constant http.StatusHTTPVersionNotSupported Symfony HTTP Status Constant Response::HTTP_VERSION_NOT_SUPPORTED Python2 HTTP Status Constant httplib.VERSION_NOT_SUPPORTED Python3+ HTTP Status Constant http.client.VERSION_NOT_SUPPORTED Python3.5+ HTTP Status Constant http.HTTPStatus.VERSION_NOT_SUPPORTED← Return to httpstatuses.com
DriverDoc WinSweeper SupersonicPC FileViewPro About Support Contact Errors Troubleshooting › Browser Status Codes › Microsoft Corporation › Windows Operating System › HTTP Version Not Supported (HTTP Error 505) How To Fix HTTP Error 505 (HTTP Version Not Supported) Error Number:HTTP Error 505 Error Name:HTTP Version Not Supported Error Description:The HTTP protocol you are asking for is unsupported. Developer:Microsoft Corporation Software:Windows Operating System Applies to:Windows XP, Vista, 7, 8, 10 Download NowWinThruster 2015 - Scan your PC for computer errors. Compatible with Windows 10, 8, 7, Vista, XP and 2000 Symptoms of HTTP Error 505 "HTTP Error 505" appears and crashes the active program window. Your browser keeps showing HTTP Error 505 on a single or multiple websites. “HTTP Version Not Supported” is displayed. Windows runs sluggishly and responds slowly to mouse or keyboard input. Your computer periodically “freezes” for a few seconds at a time. Your internet browser can display Error 505 even if that isn't truly the source of the error. For example, it is possible to receive HTTP 404 (Not Found Error) from visiting a website that is actually online and functioning properly. Causes of HTTP Error 505 Virus or malware infection that has corrupted or taken control your internet browser. Corruption in Windows registry from a recent Windows-related software change (install or uninstall). An external rogue program has maliciously infected browser-related files. Your internet browser can display Error 505 as a result of malware infection. These malicious problems can cause your internet browser to behave in very undesirable ways and cause Windows registry corruption, creating even more annoying error messages. Browser Status Codes Knowledgebase Article ID: 120639 Article Author: Jay Geater Last Updated: 07-10-2016 Popularity