1curl_easy_perform(3) libcurl Manual curl_easy_perform(3)
2
3
4
6 curl_easy_perform - Perform a file transfer
7
9 #include <curl/curl.h>
10
11 CURLcode curl_easy_perform(CURL *handle);
12
14 This function is called after the init and all the curl_easy_setopt(3)
15 calls are made, and will perform the transfer as described in the
16 options. It must be called with the same handle as input as the
17 curl_easy_init call returned.
18
19 You can do any amount of calls to curl_easy_perform(3) while using the
20 same handle. If you intend to transfer more than one file, you are even
21 encouraged to do so. libcurl will then attempt to re-use the same con‐
22 nection for the following transfers, thus making the operations faster,
23 less CPU intense and using less network resources. Just note that you
24 will have to use curl_easy_setopt(3) between the invokes to set options
25 for the following curl_easy_perform.
26
27 You must never call this function simultaneously from two places using
28 the same handle. Let the function return first before invoking it
29 another time. If you want parallel transfers, you must use several curl
30 handles.
31
33 0 means everything was ok, non-zero means an error occurred as
34 <curl/curl.h> defines. If the CURLOPT_ERRORBUFFER was set with
35 curl_easy_setopt there will be a readable error message in the error
36 buffer when non-zero is returned.
37
39 curl_easy_init(3), curl_easy_setopt(3),
40
41
42
43
44libcurl 7.7 5 Mar 2001 curl_easy_perform(3)