I am running a piwik setup on a server called (say) xyz.com and I have a reporting script(implemented in php) running at abc.xyz.com (both ubuntu with PHP 5.3). When I try to access the stats from a browser using API (with format set as JSON, XML and PHP) I can see the stats, however when I try doing the same using from PHP file_get_contents($url) I keep getting blank output. Same thing happens when I use php5-curl.
One such url will be this
Any idea what could be happening ? I do have allow_url_fopen set to On in php,ini and Piwik version is 2.1.