mirror of
https://github.com/curl/curl.git
synced 2026-08-25 05:43:32 +03:00
docs: clarify form/mime usage of non-regular data files.
This commit is contained in:
parent
b2df2d47e5
commit
14d6e207d3
3 changed files with 12 additions and 5 deletions
|
|
@ -25,9 +25,9 @@ the form-field to which portrait.jpg will be the input:
|
|||
curl -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
|
||||
file from a named pipe or similar, as it needs the full size before the
|
||||
transfer starts.
|
||||
for both @ and < constructs. For this case, as well as for others in which the
|
||||
full data size cannot be determined before the transfer starts (as named pipes
|
||||
or similar), data is transferred as chunks by HTTP and rejected by IMAP.
|
||||
|
||||
You can also tell curl what Content-Type to use by using 'type=', in a manner
|
||||
similar to:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue