我发现了一些关于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)));发布于 2014-02-20 10:07:29
也有类似的问题
在SoundCloud API文件中
在函数中(我文件中的最后一个函数)
protected function _request($url, $curlOptions = array())我添加了
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);上图
curl_setopt_array($ch, $options);似乎让我通过了我最近开始得到的HTTP代码0。
https://stackoverflow.com/questions/21420092
复制相似问题