~ubuntu-branches/ubuntu/quantal/curl/quantal

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
<HTML>
<BODY>
<PRE>
<!-- Manpage converted by man2html 3.0.1 -->

</PRE>
<H2>NAME</H2><PRE>
     curl_easy_duphandle - Clone a libcurl session handle


</PRE>
<H2>SYNOPSIS</H2><PRE>
     <B>#include</B> <B>&lt;curl/curl.h&gt;</B>

     <B>CURL</B> <B>*curl_easy_duphandle(CURL</B> <B>*</B><I>handle</I><B>);</B>


</PRE>
<H2>DESCRIPTION</H2><PRE>
     This  function  will  return a new curl handle, a duplicate,
     using all the options previously set in the input curl  <I>hanĀ­</I>
     <I>dle</I>. Both handles can subsequently be used independently and
     they must both be freed with <I>curl</I><B>_</B><I>easy</I><B>_</B><I>cleanup()</I>.

     All strings that the input handle has been told to point  to
     (as opposed to copy) with previous calls to <I>curl</I><B>_</B><I>easy</I><B>_</B><I>setopt</I>
     using char * inputs, will be pointed to by the new handle as
     well.  You  must therefore make sure to keep the data around
     until both handles have been cleaned up.

     The new handle will <B>not</B> inherit any  state  information,  no
     connections, no SSL sessions and no cookies.

     <B>Note</B>  that  even  in  multi-threaded programs, this function
     must be called in a synchronous way, the  input  handle  may
     not be in use when cloned.

     This function was added in libcurl 7.9.


</PRE>
<H2>RETURN VALUE</H2><PRE>
     If  this  function returns NULL, something went wrong and no
     valid handle was returned.


</PRE>
<H2>SEE ALSO</H2><PRE>
     <B>curl_easy_init(3)</B>,<B>curl_easy_cleanup(3)</B>,<B>curl_global_init(3)</B>


</PRE>
<H2>BUGS</H2><PRE>
     Surely there are some, you tell me!














</PRE>
<HR>
<ADDRESS>
Man(1) output converted with
<a href="http://www.oac.uci.edu/indiv/ehood/man2html.html">man2html</a>
</ADDRESS>
</BODY>
</HTML>