aboutsummaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorPatrick Monnerat <patrick@monnerat.net>2017-10-02 00:12:55 +0100
committerPatrick Monnerat <patrick@monnerat.net>2017-10-02 00:12:55 +0100
commit753a5da906f2ce21d82c4e6210697b9110c151a9 (patch)
tree9e84af829e7838414e6e07b30ae5d72fab35559b /docs
parent3ac14ab39a0b1832465f338e6542442cf36f485c (diff)
libcurl-tutorial: fix two typos.
Diffstat (limited to 'docs')
-rw-r--r--docs/libcurl/libcurl-tutorial.36
1 files changed, 3 insertions, 3 deletions
diff --git a/docs/libcurl/libcurl-tutorial.3 b/docs/libcurl/libcurl-tutorial.3
index a531d5e22..e93972424 100644
--- a/docs/libcurl/libcurl-tutorial.3
+++ b/docs/libcurl/libcurl-tutorial.3
@@ -625,7 +625,7 @@ becomes:
Setting the last \fIcurl_mime_headers\fP argument to TRUE would have caused
the headers to be automatically released upon destroyed the multi-part, thus
-saving a clean-up call to \fPcurl_slist_free_all(3)\fP.
+saving a clean-up call to \fIcurl_slist_free_all(3)\fP.
.nf
curl_formadd(&post, &last,
@@ -1213,7 +1213,7 @@ do not use this function (this would over-encode it), but explicitly set the
corresponding part header.
Upon sending such a message, libcurl prepends it with the header list
-set with \fICURLOPT_HTTPHEADERS(3)\fP, as 0th-level mime part headers.
+set with \fICURLOPT_HTTPHEADER(3)\fP, as 0th-level mime part headers.
Here is an example building an e-mail message with an inline plain/html text
alternative and a file attachment encoded in base64:
@@ -1254,7 +1254,7 @@ alternative and a file attachment encoded in base64:
headers = curl_slist_append(headers, "To: you@example.com");
/* Set these into the easy handle. */
- curl_easy_setopt(easyhandle, CURLOPT_HTTPHEADERS, headers);
+ curl_easy_setopt(easyhandle, CURLOPT_HTTPHEADER, headers);
curl_easy_setopt(easyhandle, CURLOPT_MIMEPOST, mime);
.fi