#include <curl/curl.h> CURL *curl_easy_duphandle(CURL *handle);
|handle||Handle to a curl session.|
Returns a new
CURL handle. If
NULL is returned, an unexpected issue occurred and no valid handle was returned.
This function will return a new
CURL handle, a duplicate, using all the options previously set in the input
CURL handle. Both handles can subsequently be used independently and they must
both be freed with
All strings that the input handle has been instructed to point to (as opposed to copy) with previous calls to
char * inputs, will also be pointed to by the new handle. Keep the data available until both handles have been cleaned up.
The new handle will not inherit any state information, connections, SSL sessions, or cookies.
2013/05/08 Automated cleanup pass.
2012/05/04 Initial version.