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

NAME

6       CURLOPT_MIMEPOST - set post/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 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

PROTOCOLS

25       HTTP, SMTP, IMAP.
26

AVAILABILITY

28       Since 7.56.0.
29

RETURN VALUE

31       This will return CURLE_OK.
32

EXAMPLE

34       Using  this  option  implies the use of several mime structure building
35       functions: see https://curl.se/libcurl/c/smtp-mime.html for a  complete
36       example.
37

SEE ALSO

39       curl_mime_init(3)
40
41
42
43libcurl 7.76.1                 November 04, 2020           CURLOPT_MIMEPOST(3)
Impressum