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

Popular posts from this blog

python - Subclassed QStyledItemDelegate ignores Stylesheet -

java - HttpClient 3.1 Connection pooling vs HttpClient 4.3.2 -

SQL: Divide the sum of values in one table with the count of rows in another -