I tried to extract data from a google search. I used the code below
$curl = curl_init();
curl_setopt ($curl, CURLOPT_URL, "http://www.google.com/search?output=toolbar&q=".urlencode($fkey));
curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, FALSE);
curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, 2);
curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($curl, CURLOPT_FOLLOWLOCATION, 1);
$contentstring = curl_exec ($curl);
curl_close ($curl);
print $contentstring;
But its not displaying the page as below

Please help me solve this problem ... Thanks in advance
source
share