卷曲响应说“不支持HTTP版本”,错误505 [英] curl response says "HTTP version not supported", error 505

查看:783
本文介绍了卷曲响应说“不支持HTTP版本”,错误505的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用curl请求,响应说,HTTP版本不支持,错误505.支持HTTP版本的步骤是什么。

I made request using curl, the response says that HTTP Version not supported, error 505. What are the steps to make HTTP Version supported.

在googling之后,我应该使用curl --http2.0来使它工作,但是我的curl版本不支持该选项,因为它被添加curl 7.33,而我使用curl与版本:curl 7.19.7(x86_64-redhat-linux-gnu)libcurl / 7.19.7 NSS / 3.14.0.0 zlib / 1.2.3 libidn / 1.18 libssh2 / 1.4.2

After googling i get, the i should use curl --http2.0 to make it work, but my curl version is not supporting that option, as it is added in curl 7.33, whereas i am using curl with version: curl 7.19.7 (x86_64-redhat-linux-gnu) libcurl/7.19.7 NSS/3.14.0.0 zlib/1.2.3 libidn/1.18 libssh2/1.4.2

现在,如果我升级我的curl或有任何其他方式使其支持或我在我的请求中失去的东西(对不起,但我不能显示请求) 。

Now, should i upgrade my curl or is there any other way to make it supported or am i missing something in my request(sorry, but i am not able to show the request).

如果我需要升级它,那么请指定我如何升级curl到版本7.33.0,我没有得到任何正确的方法。

If i need to upgrade it, then please specify me the way how to upgrade curl to version 7.33.0, i am not getting any proper way to do it.

推荐答案

对我来说,问题是在 url 空间有)在这个问题后,证明 curl 抱怨坏 http版本是假警报。

for me the problem was mistake in the url (i had space there) after this issue it turn out that the curl complaining about bad http version was false alarm.

这篇关于卷曲响应说“不支持HTTP版本”,错误505的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆