希望你做得好。 我试图通过curl访问https网址,但收到以下错误 “cURL连接错误(35):SSL连接错误” 我也尝试了以下解决方案
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 2);
curl_setopt($ch, CURLOPT_IPRESOLVE, CURL_IPRESOLVE_V4);
curl_setopt($ch, CURLOPT_SSLVERSION,3);
以下是我在godaddy服务器上安装的卷曲细节。
cURL support enabled
cURL Information 7.19.7
Age 3
Features
AsynchDNS No
Debug No
GSS-Negotiate Yes
IDN Yes
IPv6 Yes
Largefile Yes
NTLM Yes
SPNEGO No
SSL Yes
SSPI No
krb4 No
libz Yes
CharConv No
Protocols tftp, ftp, telnet, dict, ldap, ldaps, http, file, https, ftps, scp, sftp
Host i386-redhat-linux-gnu
SSL Version NSS/3.13.1.0
ZLib Version 1.2.3
libSSH Version libssh2/1.2.2