mirror of
https://github.com/curl/curl.git
synced 2026-05-15 23:16:24 +03:00
clarify the INFILESIZE option(s)
This commit is contained in:
parent
8cade952bf
commit
0b4bdcf18f
1 changed files with 6 additions and 0 deletions
|
|
@ -1014,10 +1014,16 @@ to POST with \fICURLOPT_POST\fP etc.
|
|||
When uploading a file to a remote site, this option should be used to tell
|
||||
libcurl what the expected size of the infile is. This value should be passed
|
||||
as a long. See also \fICURLOPT_INFILESIZE_LARGE\fP.
|
||||
|
||||
Note that this option does not limit how much data libcurl will actually send,
|
||||
as that is controlled entirely by what the read callback returns.
|
||||
.IP CURLOPT_INFILESIZE_LARGE
|
||||
When uploading a file to a remote site, this option should be used to tell
|
||||
libcurl what the expected size of the infile is. This value should be passed
|
||||
as a curl_off_t. (Added in 7.11.0)
|
||||
|
||||
Note that this option does not limit how much data libcurl will actually send,
|
||||
as that is controlled entirely by what the read callback returns.
|
||||
.IP CURLOPT_UPLOAD
|
||||
A non-zero parameter tells the library to prepare for an upload. The
|
||||
\fICURLOPT_READDATA\fP and \fICURLOPT_INFILESIZE\fP or
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue