php - cURL is not working properly except when i put exit() -
curl work fine if put exit()
after code:
$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);
but, if remove exit()
, won't work.
Comments
Post a Comment