I used to be able to query the mtgox ticker with the following code:
$c = curl_init();
curl_setopt($c, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($c, CURLOPT_URL, 'https://mtgox.com/code/data/ticker.php');
curl_setopt($c, CURLOPT_SSL_VERIFYPEER, false);
$result = curl_exec($c);
curl_close($c);
2~3 hours ago that stopped working. I tried saving the certificate so I could query as follows:
$c = curl_init();
curl_setopt($c, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($c, CURLOPT_URL, 'https://mtgox.com/code/data/ticker.php');
curl_setopt($c, CURLOPT_SSL_VERIFYPEER, true);
curl_setopt($c, CURLOPT_SSL_VERIFYHOST, 2);
curl_setopt($c, CURLOPT_CAINFO, "./CAcerts/www.mtgox.com");
$result = curl_exec($c);
curl_close($c);
That didn't work either. Did the API change somehow or is my code simply off?