Code first
public static function curl_get_https($url){
echo $url;
$curl = curl_init(); // CURL
curl_setopt($curl, CURLOPT_URL, $url);
curl_setopt($curl, CURLOPT_HEADER, 0);
curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, 0); //
curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, 0); // SSL
curl_setopt($curl, CURLOPT_RETURNTRANSFER,1);
curl_setopt($curl,CURLOPT_PROXY,"123.163.160.171");
curl_setopt($curl,CURLOPT_PROXYPORT,"8787");
curl_setopt ($curl, CURLOPT_TIMEOUT, 20);
$tmpInfo = curl_exec($curl); //apijson
curl_close($curl);
return $tmpInfo; //json
}
execute Times error message
Proxy CONNECT aborted due to timeout