From dcdd2fe1d8414739b6b3af2e9b6fe046be0194c4 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Mon, 8 Nov 2021 14:48:11 +0100 Subject: curl_easy_perform.3: add a para about recv and send data Reported-by: Godwin Stewart Fixes #7973 --- docs/libcurl/curl_easy_perform.3 | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/docs/libcurl/curl_easy_perform.3 b/docs/libcurl/curl_easy_perform.3 index 01c543f4a..1267fb8fd 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 -- cgit v1.2.1