exit()
,cURL将正常工作:
$url = "http://wpmsqa01.xyz.net/stwpmsp/update.php?cmd=changeplan&siteid=876&splan=174";
$curl = curl_init();
curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
curl_setopt ($curl, CURLOPT_URL,$url);
$response=curl_exec ($curl);
curl_close ($curl);
$get_resp=htmlentities($response);
但是,如果我删除exit()
,它将无效。