(PHP 5 >= 5.5.0)
curl_reset — Resets all options for the libcurl session handle.
void curl_reset ( resource $ch )
This function will reinitialize all option values of cURL (default values).
Note: curl_reset() also resets the URL parameters of curl_init().
ch
The cURL handle returned by curl_init().
There is no return value.
<?php// Create a cURL handle $ch = curl_init(); // Set the CURLOPT_USERAGENT option curl_setopt($ch, CURLOPT_USERAGENT, "My test user-agent"); // Reset all previously set options curl_reset($ch );//Send HTTP request curl_setopt($ch, CURLOPT_URL, 'http://w3cschool.cc/');curl_exec($ch); // the previously set user-agent will be not sent, it has been reset by curl_reset// Close the handle curl_close($ch);?>