2 <title>curl_easy_perform man page
</title>
3 <meta name=
"generator" content=
"roffit 0.7">
4 <STYLE type=
"text/css">
30 background-color: #e0e0e0;
36 font-family: monospace;
46 <p class=
"level0"><a name=
"NAME"></a><h2 class=
"nroffsh">NAME
</h2>
47 <p class=
"level0">curl_easy_perform - Perform a file transfer
<a name=
"SYNOPSIS"></a><h2 class=
"nroffsh">SYNOPSIS
</h2>
48 <p class=
"level0"><span Class=
"bold">#include
<curl/curl.h
></span>
49 <p class=
"level0"><span Class=
"bold">CURLcode curl_easy_perform(CURL * handle );
</span>
50 <p class=
"level0"><a name=
"DESCRIPTION"></a><h2 class=
"nroffsh">DESCRIPTION
</h2>
51 <p class=
"level0">This function is called after the init and all the
<a class=
"emphasis" href=
"./curl_easy_setopt.html">curl_easy_setopt(
3)
</a> calls are made, and will perform the transfer as described in the options. It must be called with the same
<span Class=
"emphasis">handle
</span> as input as the curl_easy_init call returned.
52 <p class=
"level0">You can do any amount of calls to
<a class=
"emphasis" href=
"./curl_easy_perform.html">curl_easy_perform(
3)
</a> while using the same handle. If you intend to transfer more than one file, you are even encouraged to do so. libcurl will then attempt to re-use the same connection for the following transfers, thus making the operations faster, less CPU intense and using less network resources. Just note that you will have to use
<a class=
"emphasis" href=
"./curl_easy_setopt.html">curl_easy_setopt(
3)
</a> between the invokes to set options for the following curl_easy_perform.
53 <p class=
"level0">You must never call this function simultaneously from two places using the same handle. Let the function return first before invoking it another time. If you want parallel transfers, you must use several curl handles.
<a name=
"RETURN"></a><h2 class=
"nroffsh">RETURN VALUE
</h2>
54 <p class=
"level0">0 means everything was ok, non-zero means an error occurred as
<span Class=
"emphasis"><curl/curl.h
></span> defines. If the CURLOPT_ERRORBUFFER was set with
<span Class=
"emphasis">curl_easy_setopt
</span> there will be a readable error message in the error buffer when non-zero is returned.
<a name=
"SEE"></a><h2 class=
"nroffsh">SEE ALSO
</h2>
55 <p class=
"level0"><a class=
"manpage" href=
"./curl_easy_init.html">curl_easy_init (
3)
</a> <a class=
"manpage" href=
"./curl_easy_setopt.html"> curl_easy_setopt (
3)
</a> <span Class=
"manpage"> </span>
56 <p class=
"level0"><p class=
"roffit">
57 This HTML page was made with
<a href=
"http://daniel.haxx.se/projects/roffit/">roffit
</a>.