title: Retrieving url feed with curl return empty?
body: <p>I need to retrieve the XML content from this URL :</p>
  
  <p><a href="http://www.ardmasr.com/MasrenaRss.aspx?Category=4" rel="nofollow">http://www.ardmasr.com/MasrenaRss.aspx?Category=4</a></p>
  
  <p>always return an empty string with out any errors, code:</p>
  
  <pre><code>$curl = curl_init();
  curl_setopt ($curl, CURLOPT_CONNECTTIMEOUT,10);
  curl_setopt ($curl, CURLOPT_USERAGENT,'smartic-rss-feeds');
  curl_setopt ($curl, CURLOPT_URL, $url);
  curl_setopt ($curl, CURLOPT_TIMEOUT,120);
  curl_setopt ($curl, CURLOPT_RETURNTRANSFER, TRUE);
  curl_setopt ($curl, CURLOPT_SSL_VERIFYPEER, 0);
  if($curlFollowRedirects){
  curl_setopt($curl, CURLOPT_HEADER, true);
  curl_setopt($curl, CURLOPT_FOLLOWLOCATION, false);
  }
  $content = curl_exec($curl);
  // Check if any error occurred
  if($content === false)
  {
      echo 'Curl error: ' . curl_error($curl);
  }
  curl_close ($curl);
  // if there is a redirect
  if(preg_match('#Location: (.*)#',$content, $r)){
  $l = trim($r[1]);
  $content = $this-&gt;fetch_data($l);
  }
  return $content;
  </code></pre>