gnurl_easy_duphandle(3)
π gnurl_easy_duphandle(3) π
okay bestie, welcome to the libgnurl Manual page for gnurl_easy_duphandle(3) β yes, the actual function name inside is curl_easy_duphandle, iykyk, and we are keeping every name exactly as it is. π
β¨ NAME β¨
curl_easy_duphandleβ clone alibcurlsession handle π
πΈ SYNOPSIS πΈ
#include <gnurl/curl.h>
CURL *curl_easy_duphandle(CURL *handle);
π DESCRIPTION π
okay so this function will return a new curl handle β a duplicate β and itβs using all the options that were previously set in the input curl handle. Both handles can subsequently be used independently, and they must both be freed with curl_easy_cleanup(3). periodt. π«Ά
now the important string tea: all the strings that the input handle has been told to point to β as opposed to copy β with previous calls to curl_easy_setopt(3) using char * inputs will also be pointed to by the new handle. so you must therefore make sure to keep that data around until both handles have been cleaned up. no cap. π«Άβ¨
the new handle will not inherit any state information, no connections, no SSL sessions, and no cookies. it also will not inherit any share object states or options β it will be made as if CURLOPT_SHARE(3) was set to NULL. π
in multi-threaded programs, this function must be called in a synchronous way. the input handle may not be in use when itβs cloned. periodt. π
π¦ RETURN VALUE π¦
if this function returns NULL, something went wrong and no valid handle was returned. thatβs the whole vibe check. π
π SEE ALSO π
kisses bestie, this page is part of the libgnurl Manual, source/version libcurl, dated 19 Sep 2014 β gnurl_easy_duphandle(3) out. π
β¨
π¦ where this page comes from
- nixos 26.05: libgnurl 7.72.0
- nixpkgs unstable: libgnurl 7.72.0
- Copyright (C) 1998 - 2019, Daniel Stenberg, <daniel@haxx.se>, et al
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms