post/get请求 function getCurl($url,$data=null,$method='post',$https=true){ //1. 初始化 $ch = curl_init(); //2.设置参数 curl_setopt($ch, CURLOPT_URL,$url); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);//只获取页面内容,但不输出 return transfer if($https){ curl_setopt($ch,C…