Query: curl_reset
OS: php
Section: 3
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
CURL_RESET(3) 1 CURL_RESET(3) curl_reset - Reset all options of a libcurl session handleSYNOPSISvoid curl_reset (resource $ch)DESCRIPTIONThis function re-initializes all options set on the given cURL handle to the default values.PARAMETERSo $ch -A cURL handle returned by curl_init(3).RETURN VALUESNo value is returned.EXAMPLESExample #1 curl_reset(3) example <?php // Create a curl handle $ch = curl_init(); // Set 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://example.com/'); 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); ?>NOTESNote curl_reset(3) also resets the URL given as the curl_init(3) parameter.SEE ALSOcurl_setopt(3). PHP Documentation Group CURL_RESET(3)
Related Man Pages |
---|
curl_setopt_array(3) - php |
curl_init(3) - php |
curl_multi_init(3) - php |
curl_file_create(3) - php |
curl_share_close(3) - php |
Similar Topics in the Unix Linux Community |
---|
Getting cURL to output verbose to a file |
Logging Via Terminal using cURL |
cURL and variables |
Php posting help |
Register account using cURL |