TCLCURL_SHARE(3tcl)
π TclCurl Share(n) π
okay bestie, so this is the TclCurl Share page β it's part of the TclCurl Easy Interface, and it's all about making your easy handles share stuff with each other. yes, sharing is caring, even for handles. π«Ά
β¨ NAME β¨
TclCurl β share selected data between multiple easy handles. that's the whole vibe. π
πΈ SYNOPSIS πΈ
curl::shareinit
curl::sharestrerror errorCode
shareHandle share ?data?
shareHandle unshare ?data?
shareHandle cleanup
π DESCRIPTION π
so the share API is literally the group-chat of your easy handles β it lets two or more easy handles share selected kinds of data. two or more, periodt. no cap.
at present, TclCurl is obsessed with sharing these two things: cookie data and DNS cache data. that's it, that's the list. π
π¦ curl::shareinit
this procedure MUST be called first. like, before anything else. it hands you back a shareHandle, and that handle is what you use to share data between easy handles through the -share option of the configure command.
okay serious moment: every single call toshareinitMUST have a matching call tocleanuponce you're done with the operation. no ghost handles, bestie. clean up your room. π
RETURN VALUE
the shareHandle you're gonna use. iconic, honestly. π
π shareHandle share ?data?
this parameter tells us what kind of data we're sharing. it can be set to one of the values below β pick your fighter:
cookiesβ cookie data gets shared between the easy handles that are associated with this shared object. πͺdnsβ cached DNS entries get shared between the easy handles associated with this shared object. π
ngl, a lil note: when you're using the multi interface, all easy handles added to the same multi handle share the DNS cache by default, without needing this setting at all. so like, it's already slaying on its own. β¨
π§ shareHandle unshare ?data?
this command does the total opposite of share. the specified data type will no longer be shared. the valid values are exactly the same as for share. it's giving "we're not sharing anymore, this is my data." π
π shareHandle cleanup
deletes a shared object. after this command has been called, the share handle can no longer be used β fr fr, it's done, it's over, don't come back to it. main character exits the chat. π
β curl::sharestrerror errorCode
this procedure returns a string describing the error code that you passed in as the argument. it's basically the translator for when something goes wrong and you're like "what does this number MEAN" π
π SEE ALSO π
curlTclCurl
and that's the whole page, bestie!! go share your data, be responsible, clean up your handles π
TclCurl 8.0.3 Β· 19-05-2026 β mwah, slay, bye! π β¨
π¦ where this page comes from
- ubuntu stonking: tclcurl 8.0.3-1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms