From 14d6e207d35792e3e10a674b2e27cf2aa3370bf8 Mon Sep 17 00:00:00 2001 From: Patrick Monnerat Date: Sun, 8 Oct 2017 16:15:23 +0100 Subject: docs: clarify form/mime usage of non-regular data files. --- docs/cmdline-opts/form.d | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'docs/cmdline-opts/form.d') diff --git a/docs/cmdline-opts/form.d b/docs/cmdline-opts/form.d index 232d30c07..4cc5f5a39 100644 --- a/docs/cmdline-opts/form.d +++ b/docs/cmdline-opts/form.d @@ -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: -- cgit v1.2.3