Install curl-7.20.0.tar.bz2
[msysgit.git] / mingw / share / man / man3 / curl_easy_perform.3
blob60fc1e2634c41b26a4c16ffaceb9b84c6484819d
1 .\" You can view this file with:
2 .\" nroff -man [file]
3 .\" $Id: curl_easy_perform.3,v 1.3 2009-05-19 12:48:14 yangtse Exp $
4 .\"
5 .TH curl_easy_perform 3 "5 Mar 2001" "libcurl 7.7" "libcurl Manual"
6 .SH NAME
7 curl_easy_perform - Perform a file transfer
8 .SH SYNOPSIS
9 .B #include <curl/curl.h>
10 .sp
11 .BI "CURLcode curl_easy_perform(CURL *" handle ");"
12 .ad
13 .SH DESCRIPTION
14 This function is called after the init and all the \fIcurl_easy_setopt(3)\fP
15 calls are made, and will perform the transfer as described in the options.  It
16 must be called with the same
17 .I handle
18 as input as the curl_easy_init call returned.
20 You can do any amount of calls to \fIcurl_easy_perform(3)\fP while using the
21 same handle. If you intend to transfer more than one file, you are even
22 encouraged to do so. libcurl will then attempt to re-use the same connection
23 for the following transfers, thus making the operations faster, less CPU
24 intense and using less network resources. Just note that you will have to use
25 \fIcurl_easy_setopt(3)\fP between the invokes to set options for the following
26 curl_easy_perform.
28 You must never call this function simultaneously from two places using the
29 same handle. Let the function return first before invoking it another time. If
30 you want parallel transfers, you must use several curl handles.
31 .SH RETURN VALUE
32 0 means everything was ok, non-zero means an error occurred as
33 .I <curl/curl.h>
34 defines. If the CURLOPT_ERRORBUFFER was set with
35 .I curl_easy_setopt
36 there will be a readable error message in the error buffer when non-zero is
37 returned.
38 .SH "SEE ALSO"
39 .BR curl_easy_init "(3), " curl_easy_setopt "(3), "