libcurl-share - how to use the share interface
Contents
Description
This is an overview on how to use the libcurl share interface in your C programs. There are specific man
pages for each function mentioned in here.
All functions in the share interface are prefixed with curl_share.
Name
libcurl-share - how to use the share interface
Objectives
The share interface was added to enable sharing of data between curl handles.
One Set Of Data - Many Transfers
You can have multiple easy handles share data between them. Have them update and use the same cookie
database, DNS cache, TLS session cache and/or connection cache. This way, each single transfer takes
advantage from data updates made by the other transfer(s).
See Also
curl_share_cleanup(3), curl_share_init(3), curl_share_setopt(3), libcurl-easy(3), libcurl-errors(3),
libcurl-multi(3)
libcurl 2025-06-16 libcurl-share(3)
