当前位置: 动力学知识库 > 问答 > 编程问答 >

tomcat - HTTP version not supported (error 505) - HTTP/1.1^M

问题描述:

In my architecture, there is a Nginx (1.7.4) server as a proxy, delegating requests to Tomcat server.

I noticed that for some requests, for some reason, http version arriving to Tomcat contains weird version: "HTTP/1.1^M". As a result, I getting 505 error - version not supported.

Apparently, it looks like Nginx is the one who doing that - but I not sure.

Any idea why this happens and how to solve it?

UPDATE: from my investigations, it looks like specific kind of GET request causing to the problem (removed sensetive info):

 /xxx/xxx/offeringPage/000000?TENANTID=000000000&LWMDSSO_NRM=8eSKtxi106sVrMYuzyROf6JARwtky_5NZdAZDBmBJch6zOdh4dYeYK6uNDT6k-OInD-wWs34LoXWZoxqTM9CjFzSscB-VRnn9vBirHhywLYpna_SFQ66X07PZ4Dm0GHj1AnNRGMQ0tmu2eM4DNgEJAqmLiJLcLX7Dn5gcEeFVPmKEKfi_yhtton8LlP_Qrxv9xKw_SKlmeBnRMexWakWGYHwbIxa2hSRG_3YkODfjrWQlJEEPQHVtICl0NmDYpwldICN_arnjcTiusIZ83nR62mcthLP8XEU8eA8_opfd3_SebfwRzWjxIKxD1VSYqDO8ZL6kMVhj-4cjrtCnRhCBKgKJu2jLrx9vUruOGDczi_dItD6L7epW3GJ3br1Xn8PLCJLbRCJ8qKdipNmxptjwkBNZJYMD8YwMzy1PUNozFtOJAnLdTwSWbFl0pijwUeji-Yq8W2k6vxqCJvF0aohWA9e5FP98NxcihjdWCL_64F_fdvMq8z9uGWw3XPcoiXX4bslwvexPTOYMu9SsPu_WiHnz8HRXwo7EVluK-MvI4mgdIwU2_-ZayymYdIkMcUWrK7sDx7cwLW529Ol7d1xOAhHl_aTjC5cszH0-ikfEP2_rGqpQlzHoJ3F2MArDs-JRFaWO3gas7Ne4bPGoFpoteVkNIU-EtdXz5fXib29DUgV0IY7re1Krn_AiA2QmaxENq5SCV8EjK5Ac67Y1QKdns3Xb6vz3bpqGllq7JGiasaZUX3Mv791xWyC0fPT7NwI43huAyLx-B4OfqtOi8o5p5OD5toGt9ZToRYiVsxz3YD5RQauVAGOXPBklq31x3LFrHpDbtL8p7YLedSptmMSFKoIeFAP7fussz7xzgKlpApsW3ZJ4etiKiEld6Wl6SMu-bPWaXjnJRFrr7GZ6WuoZuG0mzLopXGsIMtTGpTblloUQeCIwSC9LW81uOVj1akOIPH6aIq0MQTiGBbucQhNB0i84xx2o0PXGO6QfdTLsGceCTVxGqD8qUGcSfd8ySzeU0Nfc3xf3KEm-ztWn-FvGqXI8mIiGBuPqKOMWE__wc8NPHI1jeXMkG8mNl-WwzV0IuMfDNeDUcElmdT0yTH__9_r07__g43pNwDH7_m3XlIOLyDijHkNj5qwK-aNN9aNU6ZgK7924TuDLdg3yLrH_vatREeyYOZyxj7v58TJgvYoNYB-enma7jB2ofSleb0vnoc_zTI9AeRM9TQ9ssGNiZaa13FHo_gpLMDnyemagmRvcoX3asOEmcQ2leFQuFnKgIqD6DEjCHE1xKOoWGXrzdv8-y8Al1bTpU9CYc_l8d4.&idpId=http://xxxx.xxxx.xxx.xx/xxxx/services/trust

Another thing: the problem is not consistent. With exactly same request, it reproducing about 3/5 of time.

UPDATE2: I found this post, which looks very familiar to my problem. Is this documented Nginx behavior?

UPDATE3: found this site - looks like ^M is a carriage-return character. Why this character may be created?

分享给朋友:
您可能感兴趣的文章:
随机阅读: