curl_easy_reset
| Definition: |
include builtins\libcurl.e
curl_easy_reset(atom curl) |
| Description: |
Reset all options of a libcurl session handle.
Re-initializes all options previously set on a specified CURL handle to the default values. This puts back the handle to the same state as it was in when it was just created with curl_easy_init. |
| pwa/p2js: | Not supported. |
| Comments: |
It does not change the following information kept in the handle: live connections, the Session ID cache, the DNS cache, the cookies and shares.
Availability: This function was added in libcurl 7.12.1 |
| Example: |
include builtins\libcurl.e
curl_global_init()
atom curl = NULL
...
-- (in some routine called several times)
if curl=NULL then
curl = curl_easy_init()
else
curl_easy_reset(curl)
end if
...
curl_easy_cleanup(curl)
curl_global_cleanup()
|
| See Also: | curl_easy_init, curl_easy_cleanup, curl_easy_setopt, curl_easy_duphandle |