I'm just completely lost now, here's the URL example:
file_get_contents('http://adam-wennick.squarespace.com/actor-bro-show?format=rss');
Of course this works just fine with any other url... but this one, although it loads just fine in the browser, it returns 400 for both file_get_contents and for simplexml_load_file, while it returns 200 for curl, but the object is NULL. Has anyone of you ever encountered anything like this before?
curl code:
$rss = 'http://adam-wennick.squarespace.com/actor-bro-show?format=rss';
$ch = curl_init();
curl_setopt($ch,CURLOPT_URL, $rss);
curl_setopt($ch,CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch,CURLOPT_USERAGENT,'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.13) Gecko/20080311 Firefox/2.0.0.13');
$output = curl_exec($ch);