Soundcloud PHP HTTP代码0 [代码工作了几个月不变]

时间:2014-01-29 00:59:58

标签: php soundcloud

我发现了一些关于HTTP代码0的帖子,但它们似乎与我的上下文无关。我的PHP代码已经工作了几个月,它突然产生HTTP代码0错误。

$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)));

1 个答案:

答案 0 :(得分:2)

有类似的问题

在SoundCloud API文件中

函数中的

(我文件中的最后一个函数)

protected function _request($url, $curlOptions = array())

我添加了

curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);

上面

curl_setopt_array($ch, $options);

似乎让我通过我最近开始获得的HTTP代码0。