Home
last modified time | relevance | path

Searched refs:mime (Results 1 – 25 of 47) sorted by relevance

12

/curl/tests/libtest/
H A Dlib643.c64 curl_mime *mime = NULL; in test_once() local
83 mime = curl_mime_init(curl); in test_once()
84 if(!mime) { in test_once()
91 part = curl_mime_addpart(mime); in test_once()
94 curl_mime_free(mime); in test_once()
134 curl_mime_free(mime); in test_once()
151 curl_mime_free(mime); in test_once()
170 curl_mime_free(mime); in test_once()
186 curl_mime_free(mime); in test_once()
221 curl_mime_free(mime); in test_once()
[all …]
H A Dlib654.c69 curl_mime *mime = NULL; in test() local
102 mime = curl_mime_init(easy); in test()
103 part = curl_mime_addpart(mime); in test()
110 part = curl_mime_addpart(mime); in test()
112 part = curl_mime_addpart(mime); in test()
117 test_setopt(easy, CURLOPT_MIMEPOST, mime); in test()
129 curl_mime_free(mime); in test()
130 mime = NULL; /* Already cleaned up. */ in test()
163 curl_mime_free(mime); in test()
H A Dlib653.c36 curl_mime *mime = NULL; in test() local
41 mime = curl_mime_init(curls); in test()
42 field = curl_mime_addpart(mime); in test()
49 easy_setopt(curls, CURLOPT_MIMEPOST, mime); in test()
61 curl_mime_free(mime); in test()
H A Dlib1972.c31 curl_mime *mime = NULL; in test() local
49 mime = curl_mime_init(curl); in test()
50 if(!mime) in test()
52 part = curl_mime_addpart(mime); in test()
58 test_setopt(curl, CURLOPT_MIMEPOST, mime); in test()
80 curl_mime_free(mime); in test()
H A Dlib668.c54 curl_mime *mime = NULL; in test() local
85 mime = curl_mime_init(easy); in test()
86 part = curl_mime_addpart(mime); in test()
91 part = curl_mime_addpart(mime); in test()
96 part = curl_mime_addpart(mime); in test()
103 test_setopt(easy, CURLOPT_MIMEPOST, mime); in test()
113 curl_mime_free(mime); in test()
H A Dlib666.c34 curl_mime *mime = NULL; in test() local
60 mime = curl_mime_init(curl); in test()
61 if(!mime) { in test()
66 part = curl_mime_addpart(mime); in test()
97 test_setopt(curl, CURLOPT_MIMEPOST, mime); in test()
117 curl_mime_free(mime); in test()
H A Dlib652.c34 curl_mime *mime = NULL; in test() local
58 mime = curl_mime_init(curl); in test()
59 if(!mime) { in test()
64 part = curl_mime_addpart(mime); in test()
108 test_setopt(curl, CURLOPT_MIMEPOST, mime); in test()
125 curl_mime_free(mime); in test()
H A Dlib589.c52 curl_mime *mime = curl_mime_init(curl); in test() local
53 curl_mimepart *part = curl_mime_addpart(mime); in test()
56 test_setopt(curl, CURLOPT_MIMEPOST, mime); in test()
58 curl_mime_free(mime); in test()
H A Dlib667.c60 curl_mime *mime = NULL; in test() local
91 mime = curl_mime_init(easy); in test()
92 part = curl_mime_addpart(mime); in test()
99 test_setopt(easy, CURLOPT_MIMEPOST, mime); in test()
109 curl_mime_free(mime); in test()
H A Dlib1553.c54 curl_mime *mime = NULL; in test() local
65 mime = curl_mime_init(curls); in test()
66 field = curl_mime_addpart(mime); in test()
73 easy_setopt(curls, CURLOPT_MIMEPOST, mime); in test()
109 curl_mime_free(mime); in test()
/curl/docs/libcurl/
H A Dcurl_mime_addpart.md27 curl_mime_addpart - append a new empty part to a mime structure
34 curl_mimepart *curl_mime_addpart(curl_mime *mime);
40 mime structure and returns a handle to it. The returned part handle can
41 subsequently be populated using functions from the mime API.
43 *mime* is the handle of the mime structure in which the new part must be
53 curl_mime *mime;
58 /* create a mime handle */
59 mime = curl_mime_init(curl);
62 part = curl_mime_addpart(mime);
75 A mime part structure handle, or NULL upon failure.
H A Dcurl_mime_init.md21 curl_mime_init - create a mime handle
33 curl_mime_init(3) creates a handle to a new empty mime structure.
34 This mime structure can be subsequently filled using the mime API, then
36 a curl_easy_setopt(3) call or added as a multipart in another mime
42 Using a mime handle is the recommended way to post an HTTP form, format and
53 curl_mime *mime;
57 mime = curl_mime_init(easy);
58 part = curl_mime_addpart(mime);
63 curl_easy_setopt(easy, CURLOPT_MIMEPOST, mime);
69 curl_mime_free(mime);
[all …]
H A Dcurl_mime_free.md19 curl_mime_free - free a previously built mime structure
26 void curl_mime_free(curl_mime *mime);
32 with curl_mime_addpart(3) and other mime-handling functions. This must
37 option: attached sub part mime structures must not be explicitly freed as they
40 **mime** is the handle as returned from a previous call to
43 Passing in a NULL pointer in *mime* makes this function return immediately
55 /* Build the mime message. */
56 curl_mime *mime = curl_mime_init(curl);
61 curl_mime_free(mime);
H A Dcurl_mime_type.md20 curl_mime_type - set a mime part's content type
32 curl_mime_type(3) sets a mime part's content type.
36 *mimetype* points to the null-terminated file mime type string; it may be
37 set to NULL to remove a previously attached mime type.
43 In the absence of a mime type and if needed by the protocol specifications,
44 a default mime type is determined by the context:
50 - If a remote filename is set, the mime type is taken from the filename
64 curl_mime *mime;
69 /* create a mime handle */
70 mime = curl_mime_init(curl);
[all …]
H A Dcurl_mime_data.md21 curl_mime_data - set a mime part's body data from memory
34 curl_mime_data(3) sets a mime part's body content from memory data.
36 *part* is the mime part to assign contents to, created with
60 curl_mime *mime;
65 /* create a mime handle */
66 mime = curl_mime_init(curl);
69 part = curl_mime_addpart(mime);
H A Dcurl_mime_headers.md19 curl_mime_headers - set a mime part's custom headers
32 curl_mime_headers(3) sets a mime part's custom headers.
40 replacement or mime structure deletion; in this case the list must not be
55 curl_mime *mime;
60 mime = curl_mime_init(easy);
61 part = curl_mime_addpart(mime);
73 curl_easy_setopt(easy, CURLOPT_MIMEPOST, mime);
H A Dcurl_mime_name.md20 curl_mime_name - set a mime part's name
32 curl_mime_name(3) sets a mime part's name. This is the way HTTP form
51 curl_mime *mime;
56 /* create a mime handle */
57 mime = curl_mime_init(curl);
60 part = curl_mime_addpart(mime);
H A Dcurl_mime_filename.md20 curl_mime_filename - set a mime part's remote filename
33 curl_mime_filename(3) sets a mime part's remote filename. When remote
57 curl_mime *mime;
62 /* create a mime handle */
63 mime = curl_mime_init(curl);
66 part = curl_mime_addpart(mime);
H A Dcurl_mime_filedata.md21 curl_mime_filedata - set a mime part's body data from a file contents
34 curl_mime_filedata(3) sets a mime part's body content from the named
36 data to a mime part.
53 a character device or named pipe), the whole mime structure containing the
66 curl_mime *mime;
71 /* create a mime handle */
72 mime = curl_mime_init(curl);
75 part = curl_mime_addpart(mime);
H A Dcurl_mime_subparts.md19 curl_mime_subparts - set sub-parts of a multipart mime part
31 curl_mime_subparts(3) sets a multipart mime part's content from a mime
36 *subparts* is a mime structure handle holding the sub-parts. After
37 curl_mime_subparts(3) succeeds, the mime structure handle belongs to the
39 subsequent calls to mime API functions.
/curl/docs/examples/
H A Dsmtp-mime.c81 curl_mime *mime; in main() local
114 mime = curl_mime_init(curl); in main()
130 part = curl_mime_addpart(mime); in main()
137 part = curl_mime_addpart(mime); in main()
139 curl_easy_setopt(curl, CURLOPT_MIMEPOST, mime); in main()
164 curl_mime_free(mime); in main()
/curl/lib/
H A Dmime.c1151 if(mime && mime->parent) { in mime_subparts_free()
1163 if(mime && mime->parent) { in mime_subparts_unbind()
1190 if(mime) { in curl_mime_free()
1288 mime = (curl_mime *) malloc(sizeof(*mime)); in curl_mime_init()
1290 if(mime) { in curl_mime_init()
1306 return mime; in curl_mime_init()
1322 if(!mime) in curl_mime_addpart()
1635 if(!mime) in multipart_size()
1811 if(mime) in Curl_mime_prepare_headers()
2188 (void) mime; in curl_mime_free()
[all …]
/curl/src/
H A Dtool_formparse.c161 if(mime) { in tool_mime_free()
162 if(mime->subparts) in tool_mime_free()
164 if(mime->prev) in tool_mime_free()
166 Curl_safefree(mime->name); in tool_mime_free()
168 Curl_safefree(mime->type); in tool_mime_free()
170 Curl_safefree(mime->data); in tool_mime_free()
172 free(mime); in tool_mime_free()
310 *mime = curl_mime_init(curl); in tool2curlmime()
311 if(!*mime) in tool2curlmime()
316 curl_mime_free(*mime); in tool2curlmime()
[all …]
/curl/packages/OS400/rpg-examples/
H A DHTTPPOST65 d mime s * MIME handle
75 mime = curl_mime_init(h);
76 mimepart = curl_mime_addpart(mime);
80 mimepart = curl_mime_addpart(mime);
84 mimepart = curl_mime_addpart(mime);
92 curl_easy_setopt(h: CURLOPT_MIMEPOST: mime);
97 curl_mime_free(mime);
/curl/docs/libcurl/opts/
H A DCURLOPT_MIMEPOST.md21 CURLOPT_MIMEPOST - send data from mime structure
28 curl_mime *mime;
30 CURLcode curl_easy_setopt(CURL *handle, CURLOPT_MIMEPOST, mime);
35 Pass a mime handle previously obtained from curl_mime_init(3).

Completed in 57 milliseconds

12