aboutsummaryrefslogtreecommitdiff
path: root/docs/libcurl/opts/CURLOPT_POSTFIELDS.3
diff options
context:
space:
mode:
authorJay Satiro <raysatiro@yahoo.com>2015-05-20 01:48:31 -0400
committerJay Satiro <raysatiro@yahoo.com>2015-05-20 01:48:31 -0400
commitdb979fea73c8695a81b9360ef3060e2710bece28 (patch)
tree911c2786ce751f680b7fea9476f459bb83a078ec /docs/libcurl/opts/CURLOPT_POSTFIELDS.3
parenta393d64456b60abee0806f4e118239412c44fb63 (diff)
CURLOPT_POSTFIELDS.3: Mention curl_easy_escape
.. also correct some variable naming in curl_easy_escape.3 Bug: https://github.com/bagder/curl/issues/281 Reported-by: bsammon@users.noreply.github.com
Diffstat (limited to 'docs/libcurl/opts/CURLOPT_POSTFIELDS.3')
-rw-r--r--docs/libcurl/opts/CURLOPT_POSTFIELDS.33
1 files changed, 3 insertions, 0 deletions
diff --git a/docs/libcurl/opts/CURLOPT_POSTFIELDS.3 b/docs/libcurl/opts/CURLOPT_POSTFIELDS.3
index d55914308..27e4510b1 100644
--- a/docs/libcurl/opts/CURLOPT_POSTFIELDS.3
+++ b/docs/libcurl/opts/CURLOPT_POSTFIELDS.3
@@ -44,6 +44,9 @@ used by HTML forms. Change Content-Type with \fICURLOPT_HTTPHEADER(3)\fP.
Using \fICURLOPT_POSTFIELDS(3)\fP implies \fICURLOPT_POST(3)\fP.
+You can use \fIcurl_easy_escape(3)\fP to url-encode your data, if necessary. It
+returns a pointer to an encoded string that can be passed as \fIpostdata\fP.
+
If you want to do a zero-byte POST, you need to set
\fICURLOPT_POSTFIELDSIZE(3)\fP explicitly to zero, as simply setting
\fICURLOPT_POSTFIELDS(3)\fP to NULL or "" just effectively disables the