summaryrefslogtreecommitdiff
path: root/docs/libcurl/curl_mime_init.3
diff options
context:
space:
mode:
authorViktor Szakats <vszakats@users.noreply.github.com>2017-09-04 13:58:10 +0000
committerViktor Szakats <vszakats@users.noreply.github.com>2017-09-04 13:58:10 +0000
commit841a09ea19f9b6ec4f18d761578cef44ada2810b (patch)
tree07e368744fa5e1bece87e41612a22806da6d1c03 /docs/libcurl/curl_mime_init.3
parent202c1cc22fc3b83dff93b7181f8eb3cc1a8e4a3f (diff)
downloadcurl-841a09ea19f9b6ec4f18d761578cef44ada2810b.tar.gz
mime: use CURL_ZERO_TERMINATED in examples
and some minor whitespace fixes
Diffstat (limited to 'docs/libcurl/curl_mime_init.3')
-rw-r--r--docs/libcurl/curl_mime_init.36
1 files changed, 3 insertions, 3 deletions
diff --git a/docs/libcurl/curl_mime_init.3 b/docs/libcurl/curl_mime_init.3
index 031c62b65..cc21468e4 100644
--- a/docs/libcurl/curl_mime_init.3
+++ b/docs/libcurl/curl_mime_init.3
@@ -34,7 +34,7 @@ subsequently filled using the mime API, then attached to \fIeasy_handle\fP
using option \fICURLOPT_MIMEPOST(3)\fP within a \fIcurl_easy_setopt(3)\fP
call.
-Using a mime handle is the recommended way to post an HTTP form, format and
+Using a mime handle is the recommended way to post an HTTP form, format and
send a multi-part e-mail with SMTP or upload such an e-mail to an IMAP server.
.SH AVAILABILITY
@@ -51,8 +51,8 @@ A mime struct handle, or NULL upon failure.
/* Build an HTTP form with a single field named "data", */
mime = curl_mime_init(easy);
part = curl_mime_addpart(mime);
- curl_mime_data(part, "This is the field data", -1);
- curl_mime_name(part, "data", -1);
+ curl_mime_data(part, "This is the field data", CURL_ZERO_TERMINATED);
+ curl_mime_name(part, "data", CURL_ZERO_TERMINATED);
/* Post and send it. */
curl_easy_setopt(easy, CURLOPT_MIMEPOST, mime);