I've found some posts about HTTP code 0, but they don't quite seem related to my context. My PHP code has been working unchanged for months, and it's suddenly generating HTTP code 0 errors.
$client = new Services_Soundcloud($client_Id, $client_secret, $callback_url);
//The requested URL responded with HTTP code 0. error raised here:
$temptrack = json_decode($client->get('tracks/'.trim($track_id)));
Had a similar problem
In the SoundCloud API file
in the function (last function in my file)
protected function _request($url, $curlOptions = array())
I added
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
above
curl_setopt_array($ch, $options);
Seems to get me pass the HTTP Code 0 that I started getting recently.