服務(wù)器curl訪問(wèn)域名 如何使用curl訪問(wèn)https類型的網(wǎng)站?
如何使用curl訪問(wèn)https類型的網(wǎng)站?如何使用curl獲取https請(qǐng)求?解決方案是在curl請(qǐng)求時(shí)添加:copy code,代碼如下:curluusetopt($ch,CURLOPTuuussl
如何使用curl訪問(wèn)https類型的網(wǎng)站?
如何使用curl獲取https請(qǐng)求?
解決方案是在curl請(qǐng)求時(shí)添加:copy code,代碼如下:curluusetopt($ch,CURLOPTuuusslufypeer,false)//skip certificate check curl setopt($ch,CURLOPT SSL Verifyhost,true)//檢查證書中curl的SSL加密算法。復(fù)制代碼如下:“fdipzone”$header=array()$response=curlHTTPS($URL,$data,$header,5)echo$response?&希望本文能對(duì)您的PHP程序設(shè)計(jì)有所幫助。