comparison mupdf-source/thirdparty/curl/docs/libcurl/curl_easy_duphandle.3 @ 2:b50eed0cc0ef upstream

ADD: MuPDF v1.26.7: the MuPDF source as downloaded by a default build of PyMuPDF 1.26.4. The directory name has changed: no version number in the expanded directory now.
author Franz Glasner <fzglas.hg@dom66.de>
date Mon, 15 Sep 2025 11:43:07 +0200
parents
children
comparison
equal deleted inserted replaced
1:1d09e1dec1d9 2:b50eed0cc0ef
1 .\" **************************************************************************
2 .\" * _ _ ____ _
3 .\" * Project ___| | | | _ \| |
4 .\" * / __| | | | |_) | |
5 .\" * | (__| |_| | _ <| |___
6 .\" * \___|\___/|_| \_\_____|
7 .\" *
8 .\" * Copyright (C) 1998 - 2019, Daniel Stenberg, <daniel@haxx.se>, et al.
9 .\" *
10 .\" * This software is licensed as described in the file COPYING, which
11 .\" * you should have received as part of this distribution. The terms
12 .\" * are also available at https://curl.haxx.se/docs/copyright.html.
13 .\" *
14 .\" * You may opt to use, copy, modify, merge, publish, distribute and/or sell
15 .\" * copies of the Software, and permit persons to whom the Software is
16 .\" * furnished to do so, under the terms of the COPYING file.
17 .\" *
18 .\" * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
19 .\" * KIND, either express or implied.
20 .\" *
21 .\" **************************************************************************
22 .TH curl_easy_duphandle 3 "19 Sep 2014" "libcurl" "libcurl Manual"
23 .SH NAME
24 curl_easy_duphandle - Clone a libcurl session handle
25 .SH SYNOPSIS
26 .B #include <curl/curl.h>
27
28 .BI "CURL *curl_easy_duphandle(CURL *"handle ");"
29
30 .SH DESCRIPTION
31 This function will return a new curl handle, a duplicate, using all the
32 options previously set in the input curl \fIhandle\fP. Both handles can
33 subsequently be used independently and they must both be freed with
34 \fIcurl_easy_cleanup(3)\fP.
35
36 All strings that the input handle has been told to point to (as opposed to
37 copy) with previous calls to \fIcurl_easy_setopt(3)\fP using char * inputs,
38 will be pointed to by the new handle as well. You must therefore make sure to
39 keep the data around until both handles have been cleaned up.
40
41 The new handle will \fBnot\fP inherit any state information, no connections,
42 no SSL sessions and no cookies. It also will not inherit any share object
43 states or options (it will be made as if \fICURLOPT_SHARE(3)\fP was set to
44 NULL).
45
46 In multi-threaded programs, this function must be called in a synchronous way,
47 the input handle may not be in use when cloned.
48 .SH RETURN VALUE
49 If this function returns NULL, something went wrong and no valid handle was
50 returned.
51 .SH "SEE ALSO"
52 .BR curl_easy_init "(3)," curl_easy_cleanup "(3)," curl_easy_reset "(3),"
53 .BR curl_global_init "(3)"