title: I want to cURL google search result in php
body: <p>I tried following codes:</p>
  
  <pre><code>$url = 'http://www.google.co.uk/#q='.$query.'&amp;hl=en&amp;prmd=imvns&amp;source=lnt&amp;tbs=ctr:countryUK%7CcountryGB&amp;cr=countryUK%7CcountryGB&amp;sa=X&amp;psj=1&amp;ei=m65DT_yUAcnG0QX46_yPDw&amp;ved=0CEEQpwUoAQ&amp;bav=on.2,or.r_gc.r_pw.r_cp.,cf.osb&amp;fp=2e9b4f7fb1e75d0d&amp;biw=1440&amp;bih=799';
  
  $ch = curl_init();
  
  curl_setopt($ch, CURLOPT_PROXY, '192.168.0.1:1501');
  curl_setopt($ch, CURLOPT_REFERER, 'www.google.com');
  curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
  curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  curl_setopt($ch, CURLOPT_URL, $url);
  
  $contents = curl_exec($ch);
  
  curl_close($ch);
  
  echo $contents;
  </code></pre>
  
  <p>But it shows google homepage instead of google search result page.
  Help me to resolve this problem.</p>