1--- 2c: Copyright (C) Daniel Stenberg, <daniel.se>, et al. 3SPDX-License-Identifier: curl 4Title: curl_easy_reset 5Section: 3 6Source: libcurl 7See-also: 8 - curl_easy_cleanup (3) 9 - curl_easy_duphandle (3) 10 - curl_easy_init (3) 11 - curl_easy_setopt (3) 12--- 13 14# NAME 15 16curl_easy_reset - reset all options of a libcurl session handle 17 18# SYNOPSIS 19 20~~~c 21#include <curl/curl.h> 22 23void curl_easy_reset(CURL *handle); 24~~~ 25 26# DESCRIPTION 27 28Re-initializes all options previously set on a specified CURL handle to the 29default values. This puts back the handle to the same state as it was in when 30it was just created with curl_easy_init(3). 31 32It does not change the following information kept in the handle: live 33connections, the Session ID cache, the DNS cache, the cookies, the shares or 34the alt-svc cache. 35 36# EXAMPLE 37 38~~~c 39int main(void) 40{ 41 CURL *curl = curl_easy_init(); 42 if(curl) { 43 44 /* ... the handle is used and options are set ... */ 45 curl_easy_reset(curl); 46 } 47} 48~~~ 49 50# AVAILABILITY 51 52This function was added in libcurl 7.12.1 53 54# RETURN VALUE 55 56Nothing 57