4
<!-- Manpage converted by man2html 3.0.1 -->
8
curl_easy_duphandle - Clone a libcurl session handle
12
<H2>SYNOPSIS</H2><PRE>
13
<B>#include</B> <B><curl/curl.h></B>
15
<B>CURL</B> <B>*curl_easy_duphandle(CURL</B> <B>*</B><I>handle</I><B>);</B>
19
<H2>DESCRIPTION</H2><PRE>
20
This function will return a new curl handle, a duplicate,
21
using all the options previously set in the input curl <I>han�</I>
22
<I>dle</I>. Both handles can subsequently be used independently and
23
they must both be freed with <I>curl</I><B>_</B><I>easy</I><B>_</B><I>cleanup()</I>.
25
All strings that the input handle has been told to point to
26
(as opposed to copy) with previous calls to <I>curl</I><B>_</B><I>easy</I><B>_</B><I>setopt</I>
27
using char * inputs, will be pointed to by the new handle as
28
well. You must therefore make sure to keep the data around
29
until both handles have been cleaned up.
31
The new handle will <B>not</B> inherit any state information, no
32
connections, no SSL sessions and no cookies.
34
<B>Note</B> that even in multi-threaded programs, this function
35
must be called in a synchronous way, the input handle may
36
not be in use when cloned.
38
This function was added in libcurl 7.9.
42
<H2>RETURN VALUE</H2><PRE>
43
If this function returns NULL, something went wrong and no
44
valid handle was returned.
48
<H2>SEE ALSO</H2><PRE>
49
<B>curl_easy_init(3)</B>,<B>curl_easy_cleanup(3)</B>,<B>curl_global_init(3)</B>
54
Surely there are some, you tell me!
72
Man(1) output converted with
73
<a href="http://www.oac.uci.edu/indiv/ehood/man2html.html">man2html</a>