aboutsummaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2007-12-08 22:52:39 +0000
committerDaniel Stenberg <daniel@haxx.se>2007-12-08 22:52:39 +0000
commit8cdff55b8065faf019a453475868b0baf934244c (patch)
tree1d39f452f83cd044a46817c3058e5b41bf45a98c /docs
parent662bee71930fc30ef3fe43077bf696def44c5c7b (diff)
mention how to enable chunked encoding for POSTs
Diffstat (limited to 'docs')
-rw-r--r--docs/libcurl/curl_easy_setopt.34
1 files changed, 3 insertions, 1 deletions
diff --git a/docs/libcurl/curl_easy_setopt.3 b/docs/libcurl/curl_easy_setopt.3
index 1f628d0c5..2016ffc2e 100644
--- a/docs/libcurl/curl_easy_setopt.3
+++ b/docs/libcurl/curl_easy_setopt.3
@@ -670,7 +670,9 @@ and \fICURLOPT_READDATA\fP options but then you must make sure to not set
\fICURLOPT_POSTFIELDS\fP to anything but NULL. When providing data with a
callback, you must transmit it using chunked transfer-encoding or you must set
the size of the data with the \fICURLOPT_POSTFIELDSIZE\fP or
-\fICURLOPT_POSTFIELDSIZE_LARGE\fP option.
+\fICURLOPT_POSTFIELDSIZE_LARGE\fP option. To enable chunked encoding, you
+simply pass in the appropriate Transfer-Encoding header, see the
+post-callback.c example.
You can override the default POST Content-Type: header by setting your own
with \fICURLOPT_HTTPHEADER\fP.