PHP cURL and file_get_contents give different results?
<p>I'm trying to code an RSS scraper that will pull down a feed and use XMLReader (or DOMdocument) to spit out a list of available tags.  </p>

<p>My host does not enable file_get_contents so I pull the feed down into a variable and then use the "load from string" way of instantiating my XMLreader or DOMdocument (I've tried both methods so far).</p>

<p>When I test on my local box (where I enable file_get_contents) my script is able to pull out the XML tags.  When I use cURL, however, I get a range of errors.</p>

<p>I have already tried to UTF8 encode the string after using html_entity_decode.</p>

<p>The cURL options I am using are:</p>

<pre><code>curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_HEADER, 0);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
</code></pre>

<p>If I grab the text from the feed with my browser and save it as a file on my box then my script is also able to recognize the tags.</p>

<p>The error I am getting when using cURL is a parsing error.</p>

<p>So my question is - what settings must I use with cURL to be able to parse RSS?</p>
