一.post传递数据 $ci = curl_init($url); curl_setopt($ci, CURLOPT_HEADER, 0); curl_setopt($ci, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ci, CURLOPT_POST, 1); curl_setopt($ci,CURLOPT_POSTFIELDS,$data); $return = curl_exec($ci); echo $return; curl_close($ch);