1curl_easy_reset(3)              libcurl Manual              curl_easy_reset(3)
2
3
4

NAME

6       curl_easy_reset - reset all options of a libcurl session handle
7

SYNOPSIS

9       #include <curl/curl.h>
10
11       void curl_easy_reset(CURL *handle);
12

DESCRIPTION

14       Re-initializes all options previously set on a specified CURL handle to
15       the default values. This puts back the handle to the same state  as  it
16       was in when it was just created with curl_easy_init(3).
17
18       It  does  not change the following information kept in the handle: live
19       connections, the Session ID cache, the  DNS  cache,  the  cookies,  the
20       shares or the alt-svc cache.
21

EXAMPLE

23       CURL *curl = curl_easy_init();
24
25       /* ... the handle is used and options are set ... */
26
27       curl_easy_reset(curl);
28

AVAILABILITY

30       This function was added in libcurl 7.12.1
31

RETURN VALUE

33       Nothing
34

SEE ALSO

36       curl_easy_init(3),curl_easy_cleanup(3),curl_easy_setopt(3),
37       curl_easy_duphandle(3)
38
39
40
41libcurl 7.82.0                 November 26, 2021            curl_easy_reset(3)
Impressum