1CURLOPT_MIMEPOST(3) curl_easy_setopt options CURLOPT_MIMEPOST(3)
2
3
4
6 CURLOPT_MIMEPOST - set post/send data from mime structure
7
9 #include <curl/curl.h>
10
11 curl_mime *mime;
12
13 CURLcode curl_easy_setopt(CURL *handle, CURLOPT_MIMEPOST, mime);
14
16 Pass a mime handle previously obtained from curl_mime_init(3).
17
18 This setting is supported by the HTTP protocol to post forms and by the
19 SMTP and IMAP protocols to provide the e-mail data to send/upload.
20
21 This option is the preferred way of posting an HTTP form, replacing and
22 extending the deprecated CURLOPT_HTTPPOST(3) option.
23
25 HTTP, SMTP, IMAP.
26
28 Since 7.56.0.
29
31 This will return CURLE_OK.
32
34 Using this option implies the use of several mime structure building
35 functions: see https://curl.haxx.se/libcurl/c/smtp-mime.html for a com‐
36 plete example.
37
39 curl_mime_init(3)
40
41
42
43libcurl 7.64.0 September 04, 2017 CURLOPT_MIMEPOST(3)