Duplicate
When you need a copy of a handle, duplicate it:
CURLU *copy = curl_url_dup(h);
This makes a new handle that holds an identical URL to the source handle. duplicate.
Both URL handles need to be cleaned up separately.
Press ← or → to navigate between chapters
Press S or / to search in the book
Press ? to show this help
Press Esc to hide this help
When you need a copy of a handle, duplicate it:
CURLU *copy = curl_url_dup(h);
This makes a new handle that holds an identical URL to the source handle. duplicate.
Both URL handles need to be cleaned up separately.