SSL上的curl请求失败? [英] Curl request is failing on the SSL?
本文介绍了SSL上的curl请求失败?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有这个代码
if(ereg("^(https)",$url))
curl_setopt($curl,CURLOPT_SSL_VERIFYPEER,false);
// execute, and log the result to curl_put.log
$result = curl_exec($curl);
$error = curl_error($curl);
指定的错误是
SSL read: error:00000000:lib(0):func(0):reason(0), errno 104
有关原因的任何建议
推荐答案
使用SSL时,请确保您< href =http://php.net/manual/en/book.openssl.php =noreferrer> openssl扩展从php.ini打开。
With SSL, make sure that you have openssl extension turned on from php.ini.
这篇关于SSL上的curl请求失败?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文