aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheodore Dubois <tbodt@users.noreply.github.com>2016-04-05 14:14:47 -0700
committerDaniel Stenberg <daniel@haxx.se>2016-04-06 10:26:52 +0200
commitf07cc911088badfe6bae99dacb5dee9603f86336 (patch)
tree80c9c7f8c0317b38f4317e244b081da3e1490dfb
parentb207ccb104b3278c866cdb03c25f11684f1e06b5 (diff)
curl.1: change example for -F
It's a bad idea to send your passwords anywhere, especially over HTTP. Modified example to send a picture instead. Fixes #752
-rw-r--r--docs/curl.17
1 files changed, 3 insertions, 4 deletions
diff --git a/docs/curl.1 b/docs/curl.1
index 668e385ff..2c3dee0ff 100644
--- a/docs/curl.1
+++ b/docs/curl.1
@@ -634,11 +634,10 @@ the symbol <. The difference between @ and < is then that @ makes a file get
attached in the post as a file upload, while the < makes a text field and just
get the contents for that text field from a file.
-Example, to send your password file to the server, where
-\&'password' is the name of the form-field to which /etc/passwd will be the
-input:
+Example: to send an image to a server, where \&'profile' is the name of the
+form-field to which portrait.jpg will be the input:
-\fBcurl\fP -F password=@/etc/passwd www.mypasswords.com
+\fBcurl\fP -F profile=@portrait.jpg https://example.com/upload.cgi
To read content from stdin instead of a file, use - as the filename. This goes
for both @ and < constructs. Unfortunately it does not support reading the