1 /** 2 * 发送POST请求 3 */ 4 function doPost2($url, $postdata) { 5 //初始化 6 $curl = curl_init(); 7 // 设置post方式提交