I`m using cuRL to get some data from remote server... The response is in JSON format.. This is my code:
$ch = curl_init(); curl_setopt($ch, CURLOPT_HEADER, 0
It's possible the server check the HTTP Header, it's the case in the majority of case.
So add the same HTTP Header of your browser, verify with Firebug :
curl_setopt($ch, CURLOPT_HTTPHEADER, array('SomeName: SomeValue'));