mardi 27 mai 2014

Linux - curl réponse dit « Version HTTP non pris en charge », erreur 505 - Stack Overflow


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


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


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).


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.




curl defaults to using HTTP 1.1 (which -v and --trace will show you), so if that is non-supported you probably need to switch to HTTP 1.0 using the --http1.0 option.


http 2 is hardly used in the wild yet by servers and is only supported by very recent curl versions .



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


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


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).


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.



curl defaults to using HTTP 1.1 (which -v and --trace will show you), so if that is non-supported you probably need to switch to HTTP 1.0 using the --http1.0 option.


http 2 is hardly used in the wild yet by servers and is only supported by very recent curl versions .


0 commentaires:

Enregistrer un commentaire