mirror of
https://github.com/curl/curl.git
synced 2025-09-06 12:24:59 +03:00
Added Torsten Foertsch's changes to the -F description and his name to the
list of contributors.
This commit is contained in:
parent
293cae68bf
commit
471edc0b9e
23
docs/curl.1
23
docs/curl.1
|
@ -129,20 +129,24 @@ document, it returns a HTML document stating so (which often also
|
||||||
describes why and more). This flag will prevent curl from
|
describes why and more). This flag will prevent curl from
|
||||||
outputting that and fail silently instead.
|
outputting that and fail silently instead.
|
||||||
.IP "-F/--form <name=content>"
|
.IP "-F/--form <name=content>"
|
||||||
(HTTP)
|
(HTTP) This lets curl emulate a filled in form in which a user has pressed the
|
||||||
This lets curl emulate a filled in form in which a user has pressed
|
submit button. This causes curl to POST data using the content-type
|
||||||
the submit button. This causes curl to POST data using the
|
multipart/form-data according to RFC1867. This enables uploading of binary
|
||||||
content-type multipart/form-data according to RFC1867. This enables
|
files etc. To force the 'content' part to be be a file, prefix the file name
|
||||||
uploading of binary files etc. To force the 'content' part to be
|
with an @ sign. To just get the content part from a file, prefix the file name
|
||||||
read from a file, prefix the file name with an @ sign. Example, to
|
with the letter <. The difference between @ and < is then that @ makes a file
|
||||||
send your password file to the server, where 'password' is the
|
get attached in the post as a file upload, while the < makes a text field and
|
||||||
name of the form-field to which /etc/passwd will be the input:
|
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:
|
||||||
|
|
||||||
.B curl
|
.B curl
|
||||||
-F password=@/etc/passwd www.mypasswords.com
|
-F password=@/etc/passwd www.mypasswords.com
|
||||||
|
|
||||||
To read the file's content from stdin insted of a file, use - where the file
|
To read the file's content from stdin insted of a file, use - where the file
|
||||||
name should've been.
|
name should've been. This goes for both @ and < constructs.
|
||||||
.IP "-h/--help"
|
.IP "-h/--help"
|
||||||
Usage help.
|
Usage help.
|
||||||
.IP "-H/--header <header>"
|
.IP "-H/--header <header>"
|
||||||
|
@ -594,6 +598,7 @@ If you do find any (or have other suggestions), mail Daniel Stenberg
|
||||||
- David LeBlanc <dleblanc@qnx.com>
|
- David LeBlanc <dleblanc@qnx.com>
|
||||||
- Rich Gray at Plus Technologies
|
- Rich Gray at Plus Technologies
|
||||||
- Luong Dinh Dung <u8luong@lhsystems.hu>
|
- Luong Dinh Dung <u8luong@lhsystems.hu>
|
||||||
|
- Torsten Foertsch <torsten.foertsch@gmx.net>
|
||||||
|
|
||||||
.SH WWW
|
.SH WWW
|
||||||
http://curl.haxx.se
|
http://curl.haxx.se
|
||||||
|
|
Loading…
Reference in New Issue
Block a user