]> granicus.if.org Git - curl/commitdiff
curl_formadd.3: CURLFORM_CONTENTSLENGTH not needed when chunked
authorDaniel Stenberg <daniel@haxx.se>
Wed, 28 Dec 2016 10:49:00 +0000 (11:49 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Wed, 28 Dec 2016 10:49:00 +0000 (11:49 +0100)
Mentioned in #1013

docs/libcurl/curl_formadd.3

index bf1b11e1a2806725fa8d4483cbbf694a29ba4576..5d1faa53270a41cbf66a3173a44205618ad415a4 100644 (file)
@@ -148,8 +148,8 @@ data. The parameter you pass to \fICURLFORM_STREAM\fP is the pointer passed on
 to the read callback's fourth argument. If you want the part to look like a
 file upload one, set the \fICURLFORM_FILENAME\fP parameter as well. Note that
 when using \fICURLFORM_STREAM\fP, \fICURLFORM_CONTENTSLENGTH\fP must also be
-set with the total expected length of the part. (Option added in libcurl
-7.18.2)
+set with the total expected length of the part unless the formpost is sent
+chunked encoded. (Option added in libcurl 7.18.2)
 .IP CURLFORM_ARRAY
 Another possibility to send options to curl_formadd() is the
 \fBCURLFORM_ARRAY\fP option, that passes a struct curl_forms array pointer as