aboutsummaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2007-11-20 10:08:42 +0000
committerDaniel Stenberg <daniel@haxx.se>2007-11-20 10:08:42 +0000
commit600d0b1303a9faf396e1e3ccf255a63cdf135769 (patch)
treef6e24349a40c603a7535a62b0fa89200d3946b75 /docs
parent2f928797cf18d41d4ae0114958cfedac3fcd6c13 (diff)
Introuced --data-urlencode to the curl tool for easier url encoding of the
data sent in a post.
Diffstat (limited to 'docs')
-rw-r--r--docs/curl.114
1 files changed, 14 insertions, 0 deletions
diff --git a/docs/curl.1 b/docs/curl.1
index 0d0a3a12f..b5d5eb788 100644
--- a/docs/curl.1
+++ b/docs/curl.1
@@ -261,6 +261,20 @@ the \fI--data-ascii\fP option, this is for you.
If this option is used several times, the ones following the first will
append data.
+.IP "--data-urlencode <data>"
+(HTTP) This posts data, similar to the other --data options with the exception
+that this will do partial URL encoding. (Added in 7.17.2)
+
+The <data> part should be using one of the two following syntaxes:
+.RS
+.IP "name=content"
+This will make curl URL encode the content part and pass that on. Note that
+the name part is not encoded.
+.IP "name@filename"
+This will make curl load data from the given file, URL encode that data and
+pass it on in the POST like \fIname=urlencoded-data\fP. Note that the name
+part is not encoded.
+.RE
.IP "--digest"
(HTTP) Enables HTTP Digest authentication. This is a authentication that
prevents the password from being sent over the wire in clear text. Use this in