1CURLOPT_MIMEPOST(3)        curl_easy_setopt options        CURLOPT_MIMEPOST(3)
2
3
4

NAME

6       CURLOPT_MIMEPOST - send data from mime structure
7

SYNOPSIS

9       #include <curl/curl.h>
10
11       curl_mime *mime;
12
13       CURLcode curl_easy_setopt(CURL *handle, CURLOPT_MIMEPOST, mime);
14

DESCRIPTION

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 email 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

PROTOCOLS

25       HTTP, SMTP, IMAP.
26

EXAMPLE

28       Using  this  option  implies the use of several mime structure building
29       functions: see https://curl.se/libcurl/c/smtp-mime.html for a  complete
30       example.
31

AVAILABILITY

33       Added in 7.56.0
34

RETURN VALUE

36       This will return CURLE_OK.
37

SEE ALSO

39       curl_mime_init(3)
40
41
42
43libcurl 7.82.0                 December 17, 2021           CURLOPT_MIMEPOST(3)
Impressum