当我使用curl请求时,会出现错误。 我已经尝试了另一篇文章的答案,但没有成功。
curl_setopt( $curl, CURLOPT_SSL_CIPHER_LIST, 'SSLv3');` // add this, not worked
curl_setopt( $curl, CURLOPT_SSL_CIPHER_LIST, 'TLSv1');` // add this, not worked
我的服务器版本:
代码:
$curl = curl_init($url);
curl_setopt($curl, CURLOPT_POST, true);
curl_setopt($curl, CURLOPT_POSTFIELDS, $params);
curl_setopt( $curl, CURLOPT_SSLVERSION, 3);
curl_setopt( $curl, CURLOPT_SSL_VERIFYPEER, 0 );
curl_setopt( $curl, CURLOPT_SSL_VERIFYHOST, 0 );
curl_setopt( $curl, CURLOPT_RETURNTRANSFER, 1 );
curl_setopt( $curl, CURLOPT_HTTPHEADER, $_headers );
$result = curl_exec( $curl );
错误:错误:14094410:SSL例程:SSL3_READ_BYTES:sslv3警报握手失败