aboutsummaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2003-02-28 07:53:31 +0000
committerDaniel Stenberg <daniel@haxx.se>2003-02-28 07:53:31 +0000
commitbc1102922bd5d6b4e2a6f7a3c3b25e63897a07f6 (patch)
tree823f955992267f591b5fc71754e686c8947d12a7 /docs
parenta3d3642a304078b979d1e7b0866c16fc1fd084be (diff)
spell out that POSTFIELDS should be url-encoded in most cases
Diffstat (limited to 'docs')
-rw-r--r--docs/libcurl/curl_easy_setopt.311
1 files changed, 8 insertions, 3 deletions
diff --git a/docs/libcurl/curl_easy_setopt.3 b/docs/libcurl/curl_easy_setopt.3
index 8b3a7f30a..3f8ef88a5 100644
--- a/docs/libcurl/curl_easy_setopt.3
+++ b/docs/libcurl/curl_easy_setopt.3
@@ -361,9 +361,14 @@ will imply this option.
.TP
.B CURLOPT_POSTFIELDS
Pass a char * as parameter, which should be the full data to post in a HTTP
-post operation. This is a normal application/x-www-form-urlencoded kind, which
-is the most commonly used one by HTML forms. See also the CURLOPT_POST. Since
-7.8, using CURLOPT_POSTFIELDS implies CURLOPT_POST.
+post operation. You need to make sure that the data is formatted the way you
+want the server to receive it. libcurl will not convert or encode it for
+you. Most web servers will assume this data to be url-encoded. Take note.
+
+This POST is a normal application/x-www-form-urlencoded kind (and libcurl will
+set that Content-Type by default when this option is used), which is the most
+commonly used one by HTML forms. See also the CURLOPT_POST. Using
+CURLOPT_POSTFIELDS implies CURLOPT_POST.
\fBNote:\fP to make multipart/formdata posts (aka rfc1867-posts), check out
the \fICURLOPT_HTTPPOST\fP option.