diff options
author | Daniel Stenberg <daniel@haxx.se> | 2004-09-10 21:47:52 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2004-09-10 21:47:52 +0000 |
commit | 0ec4c66fbaea2d024e4efa16a608e9099ef49de3 (patch) | |
tree | 9773b5af93f6a8e8b91d038247c745b5ba1a4bd6 /docs | |
parent | 1faa9d6fd5a1d18f7181402959054f548389d91f (diff) |
fixed -F to support setting type= even on parts that aren't file-uploads
Diffstat (limited to 'docs')
-rw-r--r-- | docs/curl.1 | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/docs/curl.1 b/docs/curl.1 index 5553bcd34..a8040109a 100644 --- a/docs/curl.1 +++ b/docs/curl.1 @@ -338,7 +338,7 @@ If this option is used twice, the second will again disable silent failure. If this option is used twice, the second will again disable silent failure. .IP "-F/--form <name=content>" (HTTP) This lets curl emulate a filled in form in which a user has pressed the -submit button. This causes curl to POST data using the content-type +submit button. This causes curl to POST data using the Content-Type multipart/form-data according to RFC1867. This enables uploading of binary files etc. To force the 'content' part to be be a file, prefix the file name with an @ sign. To just get the content part from a file, prefix the file name @@ -355,11 +355,15 @@ input: To read the file's content from stdin insted of a file, use - where the file name should've been. This goes for both @ and < constructs. -You can also tell curl what Content-Type to use for the file upload part, by -using 'type=', in a manner similar to: +You can also tell curl what Content-Type to use by using 'type=', in a manner +similar to: \fBcurl\fP -F "web=@index.html;type=text/html" url.com +or + +\fBcurl\fP -F "name=daniel;type=text/foo" url.com + See further examples and details in the MANUAL. This option can be used multiple times. |