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

NAME

6       curl_easy_duphandle - Clone a libcurl session handle
7

SYNOPSIS

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

DESCRIPTION

15       This function will return a new curl handle, a duplicate, using all the
16       options previously set in the input curl handle. Both handles can  sub‐
17       sequently  be  used  independently  and  they  must  both be freed with
18       curl_easy_cleanup(3).
19
20       All strings that the input handle has been told to point to (as opposed
21       to  copy)  with  previous  calls  to  curl_easy_setopt(3)  using char *
22       inputs, will be pointed to by the new handle as well. You  must  there‐
23       fore  make  sure  to  keep the data around until both handles have been
24       cleaned up.
25
26       The new handle will not inherit any state information, no  connections,
27       no SSL sessions and no cookies.
28
29       Note that even in multi-threaded programs, this function must be called
30       in a synchronous way, the input handle may not be in use when cloned.
31

RETURN VALUE

33       If this function returns NULL, something went wrong and no valid handle
34       was returned.
35

SEE ALSO

37       curl_easy_init(3),curl_easy_cleanup(3),curl_easy_reset(3),
38       curl_global_init(3)
39
40
41
42
43libcurl 7.61.1                 February 03, 2016        curl_easy_duphandle(3)
Impressum