curl
handle will thus use and store its cookie and dns information in the share
handle. You can set several easy handles to share the same share object.CURL_LOCK_DATA_COOKIE
- set this bit to share cookie jar. Note that each easy handle still needs to get its cookie "engine" started properly to start using cookies.CURL_LOCK_DATA_DNS
- the DNS cache is where libcurl stores addresses for resolved host names for a while to make subsequent lookups faster.CURL_LOCK_DATA_SSL_SESSION
- the SSL session ID cache is where libcurl store resume information for SSL connections to be able to resume a previous connection faster.CURL_LOCK_DATA_CONNECT
- when set, this handle will use a shared connection cache and thus will probably be more likely to find existing connections to re-use etc, which may result in faster performance when doing multiple transfers to the same host in a serial manner.CURLOPT_SHARE
can be set to NULL to prevent a transfer from continuing to share. It that case, the handle may start the next transfer with empty caches for the data that was previously shared.CURLSHOPT_UNSHARE
option like this when unsharing DNS data: