Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/285.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/ssl/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php Curl错误:错误:14077410:SSL例程:SSL23\u GET\u SERVER\u HELLO:sslv3警报握手失败_Php_Ssl_Curl - Fatal编程技术网

Php Curl错误:错误:14077410:SSL例程:SSL23\u GET\u SERVER\u HELLO:sslv3警报握手失败

Php Curl错误:错误:14077410:SSL例程:SSL23\u GET\u SERVER\u HELLO:sslv3警报握手失败,php,ssl,curl,Php,Ssl,Curl,我收到此错误Curl错误:错误:14077410:SSL例程:SSL23\u GET\u SERVER\u HELLO:sslv3警报握手失败 这段代码在wamp服务器上运行良好 SSL版本:OpenSSL/0.9.8zf $curl = curl_init("https://api.paytrace.com/oauth/token"); curl_setopt($curl, CURLOPT_FOLLOWLOCATION, false); curl_setopt($curl, CURLOPT_H

我收到此错误
Curl错误:错误:14077410:SSL例程:SSL23\u GET\u SERVER\u HELLO:sslv3警报握手失败
这段代码在wamp服务器上运行良好

SSL版本:OpenSSL/0.9.8zf

$curl = curl_init("https://api.paytrace.com/oauth/token");
curl_setopt($curl, CURLOPT_FOLLOWLOCATION, false);
curl_setopt($curl, CURLOPT_HEADER, false);
curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
curl_setopt($curl, CURLOPT_POST, true);
curl_setopt($curl, CURLOPT_POSTFIELDS, rawurldecode(http_build_query(array(
'password' => 'XXXXX',
'username' => 'XXXXX',
'grant_type' => 'password'
))));
curl_setopt($curl, CURLOPT_HTTPHEADER, array(
'Accept: */*',
'Content-Type: application/x-www-form-urlencoded'
)); 
if(curl_exec($curl) === false)
   echo 'Curl error: ' . curl_error($curl);
else
    echo 'Operation completed without any errors';

据我所知,这意味着您的OpenSSL版本太旧,无法支持服务器密码。请您指导我,我应该如何更新SSL版本?是否也需要更新旋度?可能重复的我想你的问题可能是重复的。看看这些答案是否对你有帮助