From 600d0b1303a9faf396e1e3ccf255a63cdf135769 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Tue, 20 Nov 2007 10:08:42 +0000 Subject: Introuced --data-urlencode to the curl tool for easier url encoding of the data sent in a post. --- docs/curl.1 | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'docs') 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 " +(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 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 -- cgit v1.2.3