php curl returns bool (false) to get it locally, but to put it on other servers. What"s the problem? Is
a problem with server configuration?
who knows the great gods?
httpsgetpost
$jiekou="https://www.baifubao.com/callback?cmd=1059&callback=phone&phone=13457854758";
var_dump(https_request($jiekou));
function https_request($url){
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_TIMEOUT, 1);
curl_setopt($ch, CURLOPT_USERAGENT, $_SERVER["HTTP_USER_AGENT"]);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); //
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false); //
$r = curl_exec($ch);
curl_close($ch);
return $r;
}