微信开发curl模拟post,get请求
微信开发少不了要用到post跟get请求,封装一个函数方便后期使用
function curl_request($url, $data=null, $method='get', $https=true){
$ch = curl_init();//初始化
curl_setopt($ch, CURLOPT_URL, $url);//访问的URL
curl_setopt($c...
原创
2018-09-04 11:56:38 ·
1440 阅读 ·
1 评论