title: Failed to connect to news.google.com port 80
body: <p>I have below code for fetching the feed from google news. It's working fine for a few time. If we try to call this function more than 2 or 3 in a small time it shows an error.</p>
  
  <pre><code>$url="http://news.google.com/news?q=Stella+Artois&amp;hl=en&amp;um=1&amp;ie=UTF-8&amp;output=rss";
  $ch = curl_init();
  
  curl_setopt($ch, CURLOPT_AUTOREFERER, TRUE);
  curl_setopt($ch, CURLOPT_HEADER, TRUE);
  curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  curl_setopt($ch, CURLOPT_URL, $url);
  curl_setopt($ch, CURLOPT_FOLLOWLOCATION, TRUE);       
  
  $data = curl_exec($ch);
  $header_size = curl_getinfo($ch, CURLINFO_HEADER_SIZE);
  $header = substr($data, 0, $header_size);
  $body = substr($data, $header_size);
  if(curl_error($ch)){
      echo 'error:' . curl_error($ch);
  }
  curl_close($ch);
  </code></pre>
  
  <blockquote>
    <p>error:Failed to connect to news.google.com port 80: Connection refused</p>
  </blockquote>
  
  <p>I know the reason was, the google will block the access after a few request. SI there anything can do? I am using linux server.</p>