这个问题遇到好几次了,自己不长记性一直没记住,每次遇到了才想起来。
curl一切正常,就是返回数据时什么都没有,空白,解决思路:
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);//禁止 cURL 验证对等证书
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false);//是否检测服务器的域名与证书上的是否一致
最新的curl认可证书:https://curl.haxx.se/ca/cacert.pem
URL error 60: SSL certificate problem: unable to get local issuer certificat,报错时。
curl.cainfo =D:\phpstudy_pro\Extensions\php\php7.0.9nts\dev\cacert.pem
扫码关注腾讯云开发者
领取腾讯云代金券
Copyright © 2013 - 2025 Tencent Cloud. All Rights Reserved. 腾讯云 版权所有
深圳市腾讯计算机系统有限公司 ICP备案/许可证号:粤B2-20090059 深公网安备号 44030502008569
腾讯云计算(北京)有限责任公司 京ICP证150476号 | 京ICP备11018762号 | 京公网安备号11010802020287
Copyright © 2013 - 2025 Tencent Cloud.
All Rights Reserved. 腾讯云 版权所有