curl: (35) error:1408F10B:SSL routines:ssl3_get_record:wrong version number

前端 未结 4 3872
清歌不尽
清歌不尽 2020-12-02 11:06

When I try to connect to any server (e.g. google.com) using curl (or libcurl) I get the error message:

curl: (35) error:1408F10B:SSL routines:ssl3_get

4条回答
  •  眼角桃花
    2020-12-02 11:14

    Simple answer

    If you are behind a proxy server, please set the proxy for curl. The curl is not able to connect to server so it shows wrong version number. Set proxy by opening subl ~/.curlrc or use any other text editor. Then add the following line to file: proxy= proxyserver:proxyport For e.g. proxy = 10.8.0.1:8080

    If you are not behind a proxy, make sure that the curlrc file does not contain the proxy settings.

提交回复
热议问题