我有代码:
$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