curl_setopt($curl, CURLOPT_POSTFIELDS, $post_fields); //设置post串 //避免https请求报错 Curl error: SSL certificate problem: unable to get local issuer certificate curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, false); $data = curl_exec($cur...
curl_setopt($curl, CURLOPT_POSTFIELDS, $post_fields); //设置post串 //避免https请求报错 Curl error: SSL certificate problem: unable to get local issuer certificate curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, false); $data = curl_exec($cur...
Is it possible to configure Axios (running in node.js) to ignore specific SSL errors (like expired certificates)? I'd like to know that the SSL certificate has a problem, but I want the transaction to complete anyway (by default, it fails). ...
url='importaxiosfrom'axios'exportdefault{name:'hello',data(){return{msg:'vue调用网易云接口',author:'泥猴啊',musics:[]}},mounted:function(){axios.get(API_PROXY+'http://music.163.com/api/playlist/detail?id=19723756').then(function(res){console.log(res)},function(error){console.log(error...