$url="http://www.test.com/04_demo_weather.php?id=5"; $ci=curl_init($url); curl_setopt($ci, CURLOPT_SSL_VERIFYPEER, FALSE); curl_setopt($ci, CURLOPT_HEADER, 0); curl_setopt($ci, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ci, CURLOPT_POST, 1); $arr=array('u_name'=>'zhangsan','u_pwd'=>123); curl_setopt($ci, CURLOPT_POSTFIELDS, $arr); $data=curl_exec($ci); echo $data;