Soundcloud: The requested URL responded with HTTP code 0

后端 未结 2 871
借酒劲吻你
借酒劲吻你 2021-01-13 18:15

I moved my code base from one server to another - no code change, the only difference being https. I modified my app in Soundcloud developers to be https://url

2条回答
  •  悲哀的现实
    2021-01-13 19:11

    It's hard to debug this exception without seeing the source code. But my guess is that your problem might be related to this issue:

    https://github.com/mptre/php-soundcloud/issues/3

    Which means that you should modify your accessToken call and include the extra cURL parameters.

    $accessToken = $soundcloud->accessToken($code, $postData, array(
        CURLOPT_SSL_VERIFYPEER => false,
        CURLOPT_SSL_VERIFYHOST => false,
    ));
    

提交回复
热议问题