curl_easy_setopt()
returns CURLE_OK
, we know it stored the option fine.curl_easy_setopt
did not complain, it does not mean that the input was correct and valid; you may get an error returned later.curl_easy_reset()
on the handle.curl_easy_reset()
, all options for the given easy handle will be reset and restored to their default values. The same values the options had when the handle was initially created. The caches remain intact.curl_easy_duphandle()
. It returns a copy of the handle passed in to it.