PHP - cURL get's old version of google -
when getting google site in curl php old google page (the 1 blackbar , weird buttons). there way google appears on google.com? code:
function file_get_contents_curl($url, $proxy) { $ch = curl_init(); curl_setopt($ch, curlopt_autoreferer, true); curl_setopt($ch, curlopt_returntransfer, 1); curl_setopt($ch, curlopt_proxy, $proxy); curl_setopt($ch, curlopt_url, $url); curl_setopt($ch, curlopt_followlocation, true); $data = curl_exec($ch); curl_close($ch); return $data; } echo file_get_contents_curl('https://www.google.com/', 'proxy:8080');
thanks, if there no way ok weird looking google.
Comments
Post a Comment