卷曲OpenSSL证书错误

时间:2018-08-28 20:09:07

标签: php curl

我有代码:

$link = "https://www.zomato.com";

$curl = curl_init();
 curl_setopt_array($curl, array(
   CURLOPT_RETURNTRANSFER => 1,
   CURLOPT_URL => $link,
   CURLOPT_HTTPHEADER => array('X-Dawanda-Auth: [XYZ]'),
   CURLOPT_SSL_VERIFYHOST => false,
   CURLOPT_SSL_VERIFYPEER => false
  ));
  $out = curl_exec($curl);

  echo curl_error($curl);

  curl_close($curl);

 echo $out;

但是当我尝试运行时,出现错误:

  

OpenSSL SSL_read:SSL_ERROR_SYSCALL,错误编号0

0 个答案:

没有答案