PHP中调用http接口 方式一: $url="http://127.0.0.1:17665/taskController/start.do?taskId=2"; $ret=file_get_contents($url); //返回 方式二: $ch = curl_init()