Experience: Error 505 returned by HTTP

Source: Internet
Author: User

When I debugged the code yesterday, I used HTTP to request an image. The returned result is as follows:

HTTP/1.1 505 HTTP Version Not Supported

Server: APACHE-Coyote/1.1

Date: Wed, 27 Oct 2010 05:13:08 GMT

Connection: Close

 

Google Now. Most people say that 505 HTTP Version Not Supported is because the server does not support the HTTP protocol or is not supported well. I consulted the server to explicitly support the http1.1 protocol. There was no way at all. Later I saw in an article that the 505 error was caused by an HTTP request format error. Check your code and find the problem from the printed information. A space is added after the GET request. The request content is as follows:

GET/mwatch // upload/icon/content/1277456314876.png HTTP/1.1/R/nhost: 124.42.108.195: 61000/R/nuser-AGENT: nokiaN73-1/4.0736.3.2.1 series60/3.0 profile/MIDP-2.0 configuration/CLDC-1.1/R/n

Get is followed by two spaces. The HTTP protocol is so strict that it cannot be passed by any difference.

I would like to record it as an Empirical Summary.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.