summaryrefslogtreecommitdiff
path: root/docs/cmdline-opts/form.d
diff options
context:
space:
mode:
Diffstat (limited to 'docs/cmdline-opts/form.d')
-rw-r--r--docs/cmdline-opts/form.d12
1 files changed, 2 insertions, 10 deletions
diff --git a/docs/cmdline-opts/form.d b/docs/cmdline-opts/form.d
index 737d2b398..2347015f2 100644
--- a/docs/cmdline-opts/form.d
+++ b/docs/cmdline-opts/form.d
@@ -91,16 +91,12 @@ carriage-returns and trailing spaces are stripped.
Here is an example of a header file contents:
# This file contain two headers.
-.br
X-header-1: this is a header
# The following header is folded.
-.br
X-header-2: this is
-.br
another header
-
To support sending multipart mail messages, the syntax is extended as follows:
.br
- name can be omitted: the equal sign is the first character of the argument,
@@ -115,11 +111,8 @@ inline part in two alternative formats: plain text and HTML. It attaches a
text file:
curl -F '=(;type=multipart/alternative' \\
-.br
- -F '=plain text message' \\
-.br
- -F '= <body>HTML message</body>;type=text/html' \\
-.br
+ -F '=plain text message' \\
+ -F '= <body>HTML message</body>;type=text/html' \\
-F '=)' -F '=@textfile.txt' ... smtp://example.com
Data can be encoded for transfer using encoder=. Available encodings are
@@ -133,7 +126,6 @@ Example: send multipart mail with a quoted-printable text message and a
base64 attached file:
curl -F '=text message;encoder=quoted-printable' \\
-.br
-F '=@localfile;encoder=base64' ... smtp://example.com
See further examples and details in the MANUAL.