错误:与localbitcoins.com:443相关的未知SSL协议错误

时间:2018-06-09 20:53:08

标签: php ssl curl debian

  

向localbitcoins.com api发送请求时出错。
  错误:与localbitcoins.com:443

相关的未知SSL协议错误

卷曲版本:7.60.0
操作系统:Debian 7

我的PHP代码:

$ch = curl_init();

curl_setopt($ch, CURLOPT_URL, "https://localbitcoins.com/api/notifications/");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "GET");


$headers = array();
$headers[] = "Apiauth-Key: 04c53596b9724b9e22fc63053bb083fb";
$headers[] = "Apiauth-Nonce: 1528555437";
$headers[] = "Apiauth-Signature: 8610A7589CB472A2EF08A6A7E476BC6274E69D60B7FE2F55B93A258D83C3CF27";
curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);


$result = curl_exec($ch);
if (curl_errno($ch)) {
    echo 'Error:' . curl_error($ch); exit;
}
curl_close ($ch);

0 个答案:

没有答案