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

« back to all changes in this revision

Viewing changes to docs/libcurl/curl_easy_duphandle.html

  • Committer: Bazaar Package Importer
  • Author(s): Domenico Andreoli
  • Date: 2002-03-12 19:06:21 UTC
  • Revision ID: james.westby@ubuntu.com-20020312190621-iqx7k9cipo5d0ifr
Tags: upstream-7.9.5
Import upstream version 7.9.5

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<HTML>
 
2
<BODY>
 
3
<PRE>
 
4
<!-- Manpage converted by man2html 3.0.1 -->
 
5
 
 
6
</PRE>
 
7
<H2>NAME</H2><PRE>
 
8
     curl_easy_duphandle - Clone a libcurl session handle
 
9
 
 
10
 
 
11
</PRE>
 
12
<H2>SYNOPSIS</H2><PRE>
 
13
     <B>#include</B> <B>&lt;curl/curl.h&gt;</B>
 
14
 
 
15
     <B>CURL</B> <B>*curl_easy_duphandle(CURL</B> <B>*</B><I>handle</I><B>);</B>
 
16
 
 
17
 
 
18
</PRE>
 
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>.
 
24
 
 
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.
 
30
 
 
31
     The new handle will <B>not</B> inherit any  state  information,  no
 
32
     connections, no SSL sessions and no cookies.
 
33
 
 
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.
 
37
 
 
38
     This function was added in libcurl 7.9.
 
39
 
 
40
 
 
41
</PRE>
 
42
<H2>RETURN VALUE</H2><PRE>
 
43
     If  this  function returns NULL, something went wrong and no
 
44
     valid handle was returned.
 
45
 
 
46
 
 
47
</PRE>
 
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>
 
50
 
 
51
 
 
52
</PRE>
 
53
<H2>BUGS</H2><PRE>
 
54
     Surely there are some, you tell me!
 
55
 
 
56
 
 
57
 
 
58
 
 
59
 
 
60
 
 
61
 
 
62
 
 
63
 
 
64
 
 
65
 
 
66
 
 
67
 
 
68
 
 
69
</PRE>
 
70
<HR>
 
71
<ADDRESS>
 
72
Man(1) output converted with
 
73
<a href="http://www.oac.uci.edu/indiv/ehood/man2html.html">man2html</a>
 
74
</ADDRESS>
 
75
</BODY>
 
76
</HTML>