php curl请求返回NULL解决方法

php curl请求返回NULL解决方法

 

        curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
        curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false);

直接加这个就能返回了

posted @ 2020-02-22 21:01  newmiracle宇宙  阅读(2831)  评论(1编辑  收藏  举报