/** * curl远程传输工具 */ public function post_curl($url,$body,$header,$type='POST'){ $ch = curl_init(); curl_setopt($ch,CURLOPT_URL,$url); curl_setopt($ch,CURLOPT_HEADER,0);//0只要正文 curl_setopt($ch,CURLOPT_TIMEOUT,5);//设置超时时间 curl_setopt($ch,CURLOPT_CONNEC…