-
Notifications
You must be signed in to change notification settings - Fork 23
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. Ev = event.
For other types: CURLcode → TCurlCode, curl_httppost * → PCurlHttpPost and so on.
Straightforward, with two exceptions.
-
curl_easy_setoptis type-safe. For raw unsafe function seecurl_easy_setopt_initial. -
curl_formaddhas 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_getinfois type-safe. For raw unsafe function seecurl_easy_getinfo_initial.