Why “curl -k https://www.google.com” is not work? [closed]

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP












0















Environment: macOs + iTerm(has be set https_proxy and http_proxy) + shadowsocks(in auto mode)



why curl -k https://www.google.com (not http) has no effect, while https://www.google.com is ok in google chrome location?



curl -i http://www.google.com



HTTP/1.1 200 OK
Date: Wed, 13 Feb 2019 09:02:54 GMT
...


curl -k https://www.google.com



curl: (35) error:1400410B:SSL routines:CONNECT_CR_SRVR_HELLO:wrong version number









share|improve this question















closed as unclear what you're asking by DarkHeart, Mr Shunz, Rui F Ribeiro, Christopher, Kusalananda Feb 14 at 20:31


Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.


















  • My understanding of the question: User is able to access the google home page over HTTP but not HTTPS. If that is the case, please respond here, and I'll update your question accordingly.

    – darnir
    Feb 14 at 12:43











  • 1. I can access the google home page with Chrome Browser. 2. I can access the google home page over http with curl. 3. I can not access the google home page over https with curl.

    – liuxiaoyong
    Feb 19 at 2:45
















0















Environment: macOs + iTerm(has be set https_proxy and http_proxy) + shadowsocks(in auto mode)



why curl -k https://www.google.com (not http) has no effect, while https://www.google.com is ok in google chrome location?



curl -i http://www.google.com



HTTP/1.1 200 OK
Date: Wed, 13 Feb 2019 09:02:54 GMT
...


curl -k https://www.google.com



curl: (35) error:1400410B:SSL routines:CONNECT_CR_SRVR_HELLO:wrong version number









share|improve this question















closed as unclear what you're asking by DarkHeart, Mr Shunz, Rui F Ribeiro, Christopher, Kusalananda Feb 14 at 20:31


Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.


















  • My understanding of the question: User is able to access the google home page over HTTP but not HTTPS. If that is the case, please respond here, and I'll update your question accordingly.

    – darnir
    Feb 14 at 12:43











  • 1. I can access the google home page with Chrome Browser. 2. I can access the google home page over http with curl. 3. I can not access the google home page over https with curl.

    – liuxiaoyong
    Feb 19 at 2:45














0












0








0








Environment: macOs + iTerm(has be set https_proxy and http_proxy) + shadowsocks(in auto mode)



why curl -k https://www.google.com (not http) has no effect, while https://www.google.com is ok in google chrome location?



curl -i http://www.google.com



HTTP/1.1 200 OK
Date: Wed, 13 Feb 2019 09:02:54 GMT
...


curl -k https://www.google.com



curl: (35) error:1400410B:SSL routines:CONNECT_CR_SRVR_HELLO:wrong version number









share|improve this question
















Environment: macOs + iTerm(has be set https_proxy and http_proxy) + shadowsocks(in auto mode)



why curl -k https://www.google.com (not http) has no effect, while https://www.google.com is ok in google chrome location?



curl -i http://www.google.com



HTTP/1.1 200 OK
Date: Wed, 13 Feb 2019 09:02:54 GMT
...


curl -k https://www.google.com



curl: (35) error:1400410B:SSL routines:CONNECT_CR_SRVR_HELLO:wrong version number






curl ssl






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Feb 20 at 2:48







liuxiaoyong

















asked Feb 14 at 3:13









liuxiaoyongliuxiaoyong

11




11




closed as unclear what you're asking by DarkHeart, Mr Shunz, Rui F Ribeiro, Christopher, Kusalananda Feb 14 at 20:31


Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.









closed as unclear what you're asking by DarkHeart, Mr Shunz, Rui F Ribeiro, Christopher, Kusalananda Feb 14 at 20:31


Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.














  • My understanding of the question: User is able to access the google home page over HTTP but not HTTPS. If that is the case, please respond here, and I'll update your question accordingly.

    – darnir
    Feb 14 at 12:43











  • 1. I can access the google home page with Chrome Browser. 2. I can access the google home page over http with curl. 3. I can not access the google home page over https with curl.

    – liuxiaoyong
    Feb 19 at 2:45


















  • My understanding of the question: User is able to access the google home page over HTTP but not HTTPS. If that is the case, please respond here, and I'll update your question accordingly.

    – darnir
    Feb 14 at 12:43











  • 1. I can access the google home page with Chrome Browser. 2. I can access the google home page over http with curl. 3. I can not access the google home page over https with curl.

    – liuxiaoyong
    Feb 19 at 2:45

















My understanding of the question: User is able to access the google home page over HTTP but not HTTPS. If that is the case, please respond here, and I'll update your question accordingly.

– darnir
Feb 14 at 12:43





My understanding of the question: User is able to access the google home page over HTTP but not HTTPS. If that is the case, please respond here, and I'll update your question accordingly.

– darnir
Feb 14 at 12:43













1. I can access the google home page with Chrome Browser. 2. I can access the google home page over http with curl. 3. I can not access the google home page over https with curl.

– liuxiaoyong
Feb 19 at 2:45






1. I can access the google home page with Chrome Browser. 2. I can access the google home page over http with curl. 3. I can not access the google home page over https with curl.

– liuxiaoyong
Feb 19 at 2:45











1 Answer
1






active

oldest

votes


















1














If my understanding of your question if right, you're facing troubles accessing the Google home page over HTTPS.



Based on the error message you provided, the first thought goes towards you using an old version of OpenSSL which supports only upto SSLv3 or TLSv1, both of which are now deprecated protocols. Try using a newer version of curl and see if it still persists






share|improve this answer























  • curl-config --version libcurl 7.54.0

    – liuxiaoyong
    Feb 19 at 2:51











  • Then I have install the curl via brew, it's version 7.64.0. The try outputs is here /usr/local/Cellar/curl/7.64.0/bin/curl -k https://www.google.com curl: (4) Unsupported proxy 'https://127.0.0.1:1087', libcurl is built without the HTTPS-proxy support.

    – liuxiaoyong
    Feb 19 at 2:57












  • Yep. I have used https_proxy with shadowsocks in auto mode.

    – liuxiaoyong
    Feb 19 at 3:05











  • Please add this information to the main question. Also, the solution is right there, you need to rebuild curl with proxy support

    – darnir
    Feb 19 at 12:40











  • Yes. I have add. But the main question error is CONNECT_CR_SRVR_HELLO. So not necessarily "curl is not support https proxy" is the reason. And now I have no condition to try rebuild curl.

    – liuxiaoyong
    Feb 20 at 2:58

















1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









1














If my understanding of your question if right, you're facing troubles accessing the Google home page over HTTPS.



Based on the error message you provided, the first thought goes towards you using an old version of OpenSSL which supports only upto SSLv3 or TLSv1, both of which are now deprecated protocols. Try using a newer version of curl and see if it still persists






share|improve this answer























  • curl-config --version libcurl 7.54.0

    – liuxiaoyong
    Feb 19 at 2:51











  • Then I have install the curl via brew, it's version 7.64.0. The try outputs is here /usr/local/Cellar/curl/7.64.0/bin/curl -k https://www.google.com curl: (4) Unsupported proxy 'https://127.0.0.1:1087', libcurl is built without the HTTPS-proxy support.

    – liuxiaoyong
    Feb 19 at 2:57












  • Yep. I have used https_proxy with shadowsocks in auto mode.

    – liuxiaoyong
    Feb 19 at 3:05











  • Please add this information to the main question. Also, the solution is right there, you need to rebuild curl with proxy support

    – darnir
    Feb 19 at 12:40











  • Yes. I have add. But the main question error is CONNECT_CR_SRVR_HELLO. So not necessarily "curl is not support https proxy" is the reason. And now I have no condition to try rebuild curl.

    – liuxiaoyong
    Feb 20 at 2:58















1














If my understanding of your question if right, you're facing troubles accessing the Google home page over HTTPS.



Based on the error message you provided, the first thought goes towards you using an old version of OpenSSL which supports only upto SSLv3 or TLSv1, both of which are now deprecated protocols. Try using a newer version of curl and see if it still persists






share|improve this answer























  • curl-config --version libcurl 7.54.0

    – liuxiaoyong
    Feb 19 at 2:51











  • Then I have install the curl via brew, it's version 7.64.0. The try outputs is here /usr/local/Cellar/curl/7.64.0/bin/curl -k https://www.google.com curl: (4) Unsupported proxy 'https://127.0.0.1:1087', libcurl is built without the HTTPS-proxy support.

    – liuxiaoyong
    Feb 19 at 2:57












  • Yep. I have used https_proxy with shadowsocks in auto mode.

    – liuxiaoyong
    Feb 19 at 3:05











  • Please add this information to the main question. Also, the solution is right there, you need to rebuild curl with proxy support

    – darnir
    Feb 19 at 12:40











  • Yes. I have add. But the main question error is CONNECT_CR_SRVR_HELLO. So not necessarily "curl is not support https proxy" is the reason. And now I have no condition to try rebuild curl.

    – liuxiaoyong
    Feb 20 at 2:58













1












1








1







If my understanding of your question if right, you're facing troubles accessing the Google home page over HTTPS.



Based on the error message you provided, the first thought goes towards you using an old version of OpenSSL which supports only upto SSLv3 or TLSv1, both of which are now deprecated protocols. Try using a newer version of curl and see if it still persists






share|improve this answer













If my understanding of your question if right, you're facing troubles accessing the Google home page over HTTPS.



Based on the error message you provided, the first thought goes towards you using an old version of OpenSSL which supports only upto SSLv3 or TLSv1, both of which are now deprecated protocols. Try using a newer version of curl and see if it still persists







share|improve this answer












share|improve this answer



share|improve this answer










answered Feb 14 at 12:45









darnirdarnir

3,34211226




3,34211226












  • curl-config --version libcurl 7.54.0

    – liuxiaoyong
    Feb 19 at 2:51











  • Then I have install the curl via brew, it's version 7.64.0. The try outputs is here /usr/local/Cellar/curl/7.64.0/bin/curl -k https://www.google.com curl: (4) Unsupported proxy 'https://127.0.0.1:1087', libcurl is built without the HTTPS-proxy support.

    – liuxiaoyong
    Feb 19 at 2:57












  • Yep. I have used https_proxy with shadowsocks in auto mode.

    – liuxiaoyong
    Feb 19 at 3:05











  • Please add this information to the main question. Also, the solution is right there, you need to rebuild curl with proxy support

    – darnir
    Feb 19 at 12:40











  • Yes. I have add. But the main question error is CONNECT_CR_SRVR_HELLO. So not necessarily "curl is not support https proxy" is the reason. And now I have no condition to try rebuild curl.

    – liuxiaoyong
    Feb 20 at 2:58

















  • curl-config --version libcurl 7.54.0

    – liuxiaoyong
    Feb 19 at 2:51











  • Then I have install the curl via brew, it's version 7.64.0. The try outputs is here /usr/local/Cellar/curl/7.64.0/bin/curl -k https://www.google.com curl: (4) Unsupported proxy 'https://127.0.0.1:1087', libcurl is built without the HTTPS-proxy support.

    – liuxiaoyong
    Feb 19 at 2:57












  • Yep. I have used https_proxy with shadowsocks in auto mode.

    – liuxiaoyong
    Feb 19 at 3:05











  • Please add this information to the main question. Also, the solution is right there, you need to rebuild curl with proxy support

    – darnir
    Feb 19 at 12:40











  • Yes. I have add. But the main question error is CONNECT_CR_SRVR_HELLO. So not necessarily "curl is not support https proxy" is the reason. And now I have no condition to try rebuild curl.

    – liuxiaoyong
    Feb 20 at 2:58
















curl-config --version libcurl 7.54.0

– liuxiaoyong
Feb 19 at 2:51





curl-config --version libcurl 7.54.0

– liuxiaoyong
Feb 19 at 2:51













Then I have install the curl via brew, it's version 7.64.0. The try outputs is here /usr/local/Cellar/curl/7.64.0/bin/curl -k https://www.google.com curl: (4) Unsupported proxy 'https://127.0.0.1:1087', libcurl is built without the HTTPS-proxy support.

– liuxiaoyong
Feb 19 at 2:57






Then I have install the curl via brew, it's version 7.64.0. The try outputs is here /usr/local/Cellar/curl/7.64.0/bin/curl -k https://www.google.com curl: (4) Unsupported proxy 'https://127.0.0.1:1087', libcurl is built without the HTTPS-proxy support.

– liuxiaoyong
Feb 19 at 2:57














Yep. I have used https_proxy with shadowsocks in auto mode.

– liuxiaoyong
Feb 19 at 3:05





Yep. I have used https_proxy with shadowsocks in auto mode.

– liuxiaoyong
Feb 19 at 3:05













Please add this information to the main question. Also, the solution is right there, you need to rebuild curl with proxy support

– darnir
Feb 19 at 12:40





Please add this information to the main question. Also, the solution is right there, you need to rebuild curl with proxy support

– darnir
Feb 19 at 12:40













Yes. I have add. But the main question error is CONNECT_CR_SRVR_HELLO. So not necessarily "curl is not support https proxy" is the reason. And now I have no condition to try rebuild curl.

– liuxiaoyong
Feb 20 at 2:58





Yes. I have add. But the main question error is CONNECT_CR_SRVR_HELLO. So not necessarily "curl is not support https proxy" is the reason. And now I have no condition to try rebuild curl.

– liuxiaoyong
Feb 20 at 2:58


Popular posts from this blog

How to check contact read email or not when send email to Individual?

Bahrain

Postfix configuration issue with fips on centos 7; mailgun relay