curl命令发送post请求 如何使用curl获取https请求?

如何使用curl获取https请求?解决方案是添加:复制如下代码:curlsetopt($ch,CURLOPTussluverifypeer,false)//跳过证书检查curlsetopt($ch,

如何使用curl获取https请求?

解决方案是添加:复制如下代码:curlsetopt($ch,CURLOPTussluverifypeer,false)//跳过证书检查curlsetopt($ch,CURLOPTussluverifyhost,true)//检查证书中curl的SSL加密算法。复制代码如下:“fdipzone”$header=array()$response=curlHTTPS($URL,$data,$header,5)echo$response?&希望本文能对您的PHP程序设计有所帮助。