1curl_mime_subparts(3)           libcurl Manual           curl_mime_subparts(3)
2
3
4

NAME

6       curl_mime_subparts - set subparts of a multipart mime part
7

SYNOPSIS

9       #include <curl/curl.h>
10
11       CURLcode  curl_mime_subparts(curl_mimepart  *  part,  curl_mime  * sub‐
12       parts);
13

DESCRIPTION

15       curl_mime_subparts(3) sets a multipart mime part's content from a  mime
16       structure.
17
18       part is a handle to the multipart part.
19
20       subparts  is  a  mime  structure  handle  holding  the  subparts. After
21       curl_mime_subparts succeeds, the mime structure handle belongs  to  the
22       multipart  part  and  must  not  be freed explicitly. It may however be
23       updated by subsequent calls to mime API functions.
24
25       Setting a part's contents twice is valid: only the  value  set  by  the
26       last  call is retained. It is possible to unassign previous part's con‐
27       tents by setting subparts to NULL.
28

AVAILABILITY

30       As long as at least one of HTTP, SMTP or  IMAP  is  enabled.  Added  in
31       7.56.0.
32

RETURN VALUE

34       CURLE_OK or a CURL error code upon failure.
35

EXAMPLE

37       TODO
38

SEE ALSO

40       curl_mime_addpart(3), curl_mime_init(3)
41
42
43
44libcurl 7.64.0                September 05, 2017         curl_mime_subparts(3)
Impressum