before transfer
-
create handle
CURL *easy_handle = curl_easy_init(); -
set options
/* set URL to operate on */
res = curl_easy_setopt(easy_handle, CURLOPT_URL, “http://example.com/”);
transfering
- begine transfer
// 3.1 simple transfer way
res = curl_easy_perform( easy_handle );
// 3.2 multi handle
// 3.3