docs: POSTFIELDSIZE must be set to -1 with read function
Reported-by: RanBarLavie on github Closes #10313
This commit is contained in:
Родитель
f8da4f2f2d
Коммит
5a70403cff
|
@ -32,10 +32,11 @@ CURLOPT_POSTFIELDSIZE \- size of POST data pointed to
|
|||
CURLcode curl_easy_setopt(CURL *handle, CURLOPT_POSTFIELDSIZE, long size);
|
||||
.fi
|
||||
.SH DESCRIPTION
|
||||
If you want to post data to the server without having libcurl do a strlen() to
|
||||
measure the data size, this option must be used. When this option is used you
|
||||
can post fully binary data, which otherwise is likely to fail. If this size is
|
||||
set to -1, the library will use strlen() to get the size.
|
||||
If you want to post static data to the server without having libcurl do a
|
||||
strlen() to measure the data size, this option must be used. When this option
|
||||
is used you can post fully binary data, which otherwise is likely to fail. If
|
||||
this size is set to -1, the library will use strlen() to get the size or rely
|
||||
on the \fICURLOPT_READFUNCTION\fP (if used) to signal the end of data.
|
||||
|
||||
If you post more than 2GB, use \fICURLOPT_POSTFIELDSIZE_LARGE(3)\fP.
|
||||
.SH DEFAULT
|
||||
|
|
|
@ -32,10 +32,11 @@ CURLOPT_POSTFIELDSIZE_LARGE \- size of POST data pointed to
|
|||
CURLcode curl_easy_setopt(CURL *handle, CURLOPT_POSTFIELDSIZE_LARGE,
|
||||
curl_off_t size);
|
||||
.SH DESCRIPTION
|
||||
If you want to post data to the server without having libcurl do a strlen() to
|
||||
measure the data size, this option must be used. When this option is used you
|
||||
can post fully binary data, which otherwise is likely to fail. If this size is
|
||||
set to -1, the library will use strlen() to get the size.
|
||||
If you want to post static data to the server without having libcurl do a
|
||||
strlen() to measure the data size, this option must be used. When this option
|
||||
is used you can post fully binary data, which otherwise is likely to fail. If
|
||||
this size is set to -1, the library will use strlen() to get the size or rely
|
||||
on the \fICURLOPT_READFUNCTION\fP (if used) to signal the end of data.
|
||||
.SH DEFAULT
|
||||
-1
|
||||
.SH PROTOCOLS
|
||||
|
|
Загрузка…
Ссылка в новой задаче