-
Notifications
You must be signed in to change notification settings - Fork 22
Raw interface
Mercury13 edited this page Oct 31, 2017
·
12 revisions
uses Curl.Lib;
For handles (pointers to unknown structs): CURL*
→ HCurl
and so on. H = handle.
For callbacks: curl_lock_function
→ EvCurlLock
and so on. Ev = event.
For other types: CURLcode
→ TCurlCode
, curl_httppost *
→ PCurlHttpPost
and so on.
Straightforward, with two exceptions.
-
curl_easy_setopt
is type-safe. For raw unsafe function seecurl_easy_setopt_initial
. -
curl_formadd
has 10 versions with different number of parameters. All parameters are PAnsiChar, to simplify passing strings. If you want integer or pointer, just castPAnsiChar(x)
. For raw unsafe function seecurl_formadd_initial
, but it is EXTREMELY mistake-prone, I warned you! -
curl_easy_getinfo
is type-safe. For raw unsafe function seecurl_easy_getinfo_initial
.