From: Daniel Stenberg Date: Mon, 8 Nov 2021 13:48:11 +0000 (+0100) Subject: curl_easy_perform.3: add a para about recv and send data X-Git-Tag: curl-7_80_0~9 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=5c1e1d9aa46302b0f9999f088ba87e10a9779254;p=thirdparty%2Fcurl.git curl_easy_perform.3: add a para about recv and send data Reported-by: Godwin Stewart Fixes #7973 Closes #7974 --- diff --git a/docs/libcurl/curl_easy_perform.3 b/docs/libcurl/curl_easy_perform.3 index 01c543f4ab..1267fb8fda 100644 --- a/docs/libcurl/curl_easy_perform.3 +++ b/docs/libcurl/curl_easy_perform.3 @@ -50,6 +50,12 @@ same \fBeasy_handle\fP. Let the function return first before invoking it another time. If you want parallel transfers, you must use several curl easy_handles. +A network transfer moves data to a peer or from a peer. An application tells +libcurl how to receive data by setting the \fICURLOPT_WRITEFUNCTION(3)\fP and +\fICURLOPT_WRITEDATA(3)\fP options. To tell libcurl what data to send, there +are a few more alternatives but two common ones are +\fICURLOPT_READFUNCTION(3)\fP and \fICURLOPT_POSTFIELDS(3)\fP. + While the \fBeasy_handle\fP is added to a multi handle, it cannot be used by \fIcurl_easy_perform(3)\fP. .SH EXAMPLE