Install curl-7.19.5.tar.bz2
[git/jnareb-git.git] / mingw / share / man / man3 / curl_easy_duphandle.3
blob08080b84fd8fc4af8858bcef1a9b83710b14a77b
1 .\" You can view this file with:
2 .\" nroff -man [file]
3 .\" $Id: curl_easy_duphandle.3,v 1.4 2004/04/13 09:08:52 bagder Exp $
4 .\"
5 .TH curl_easy_duphandle 3 "18 September 2001" "libcurl 7.9" "libcurl Manual"
6 .SH NAME
7 curl_easy_duphandle - Clone a libcurl session handle
8 .SH SYNOPSIS
9 .B #include <curl/curl.h>
11 .BI "CURL *curl_easy_duphandle(CURL *"handle ");"
13 .SH DESCRIPTION
14 This function will return a new curl handle, a duplicate, using all the
15 options previously set in the input curl \fIhandle\fP. Both handles can
16 subsequently be used independently and they must both be freed with
17 \fIcurl_easy_cleanup(3)\fP.
19 All strings that the input handle has been told to point to (as opposed to
20 copy) with previous calls to \fIcurl_easy_setopt(3)\fP using char * inputs,
21 will be pointed to by the new handle as well. You must therefore make sure to
22 keep the data around until both handles have been cleaned up.
24 The new handle will \fBnot\fP inherit any state information, no connections,
25 no SSL sessions and no cookies.
27 \fBNote\fP that even in multi-threaded programs, this function must be called
28 in a synchronous way, the input handle may not be in use when cloned.
29 .SH RETURN VALUE
30 If this function returns NULL, something went wrong and no valid handle was
31 returned.
32 .SH "SEE ALSO"
33 .BR curl_easy_init "(3)," curl_easy_cleanup "(3)," curl_global_init "(3)