Home
last modified time | relevance | path

Searched refs:part (Results 1 – 25 of 246) sorted by relevance

12345678910

/curl/lib/
H A Dmime.c715 part->fp = fopen_read(part->data, "rb"); in mime_open_file()
809 part->state.offset >= part->datasize) { in read_part_content()
822 if(part->fp && feof(part->fp)) in read_part_content()
1115 for(part = mime->firstpart; part; part = part->nextpart) { in mime_subparts_seek()
1131 part->freefunc(part->arg); in cleanup_part_content()
1312 memset((char *) part, 0, sizeof(*part)); in Curl_mime_initpart()
1641 for(part = mime->firstpart; part; part = part->nextpart) { in multipart_size()
1665 size = part->encoder->sizefunc(part); in mime_size()
1822 if(part->filename || part->name || in Curl_mime_prepare_headers()
1826 !part->name && !part->filename) in Curl_mime_prepare_headers()
[all …]
H A Dmime.h78 curl_mimepart *part); /* Encoded read. */
79 curl_off_t (*sizefunc)(curl_mimepart *part); /* Encoded size. */
141 void Curl_mime_initpart(struct curl_mimepart *part);
142 void Curl_mime_cleanpart(struct curl_mimepart *part);
146 CURLcode Curl_mime_set_subparts(struct curl_mimepart *part,
150 struct curl_mimepart *part,
162 CURLcode Curl_creader_set_mime(struct Curl_easy *data, curl_mimepart *part);
/curl/tests/libtest/
H A Dlib643.c65 curl_mimepart *part = NULL; in test_once() local
91 part = curl_mime_addpart(mime); in test_once()
92 if(!part) { in test_once()
131 part = curl_mime_addpart(mime); in test_once()
132 if(!part) { in test_once()
148 part = curl_mime_addpart(mime); in test_once()
149 if(!part) { in test_once()
167 part = curl_mime_addpart(mime); in test_once()
168 if(!part) { in test_once()
183 part = curl_mime_addpart(mime); in test_once()
[all …]
H A Dlib668.c55 curl_mimepart *part; in test() local
86 part = curl_mime_addpart(mime); in test()
87 curl_mime_name(part, "field1"); in test()
89 curl_mime_data_cb(part, (curl_off_t) strlen(testdata), in test()
91 part = curl_mime_addpart(mime); in test()
92 curl_mime_name(part, "field2"); in test()
95 curl_mime_data_cb(part, (curl_off_t) -1, read_callback, NULL, NULL, &pooh2); in test()
96 part = curl_mime_addpart(mime); in test()
97 curl_mime_name(part, "field3"); in test()
100 curl_mime_filedata(part, libtest_arg2); in test()
H A Dlib654.c70 curl_mimepart *part; in test() local
103 part = curl_mime_addpart(mime); in test()
104 curl_mime_data(part, "hello", CURL_ZERO_TERMINATED); in test()
105 curl_mime_name(part, "greeting"); in test()
106 curl_mime_type(part, "application/X-Greeting"); in test()
107 curl_mime_encoder(part, "base64"); in test()
109 curl_mime_headers(part, hdrs, TRUE); in test()
110 part = curl_mime_addpart(mime); in test()
111 curl_mime_filedata(part, libtest_arg2); in test()
112 part = curl_mime_addpart(mime); in test()
[all …]
H A Dlib666.c35 curl_mimepart *part; in test() local
66 part = curl_mime_addpart(mime); in test()
67 if(!part) { in test()
72 res = curl_mime_name(part, "upfile"); in test()
77 res = curl_mime_filename(part, "myfile.txt"); in test()
82 res = curl_mime_data(part, testbuf, sizeof(testbuf)); in test()
87 res = curl_mime_encoder(part, "binary"); in test()
H A Dlib652.c35 curl_mimepart *part; in test() local
64 part = curl_mime_addpart(mime); in test()
65 if(!part) { in test()
70 res = curl_mime_filename(part, "myfile.jpg"); in test()
75 res = curl_mime_type(part, "image/jpeg"); in test()
80 res = curl_mime_data(part, testbuf, sizeof(testbuf)); in test()
85 res = curl_mime_encoder(part, "base64"); in test()
H A Dlib1972.c32 curl_mimepart *part = NULL; in test() local
52 part = curl_mime_addpart(mime); in test()
53 if(!part) in test()
55 curl_mime_name(part, "foo"); in test()
56 curl_mime_data(part, "bar", CURL_ZERO_TERMINATED); in test()
H A Dlib667.c61 curl_mimepart *part; in test() local
92 part = curl_mime_addpart(mime); in test()
93 curl_mime_name(part, "field"); in test()
94 curl_mime_encoder(part, "base64"); in test()
96 curl_mime_data_cb(part, (curl_off_t) -1, read_callback, NULL, NULL, &pooh); in test()
/curl/docs/libcurl/
H A Dcurl_mime_subparts.md19 curl_mime_subparts - set sub-parts of a multipart mime part
34 *part* is a handle to the multipart part.
63 curl_mimepart *part;
66 part = curl_mime_addpart(alt);
68 curl_mime_type(part, "text/html");
71 part = curl_mime_addpart(alt);
74 /* Create the inline part. */
75 part = curl_mime_addpart(alt);
76 curl_mime_subparts(part, alt);
77 curl_mime_type(part, "multipart/alternative");
[all …]
H A Dcurl_mime_name.md20 curl_mime_name - set a mime part's name
27 CURLcode curl_mime_name(curl_mimepart *part, const char *name);
32 curl_mime_name(3) sets a mime part's name. This is the way HTTP form
35 *part* is the part's handle to assign a name to.
39 The name string is copied into the part, thus the associated storage may
42 reset the name of a part by setting *name* to NULL.
52 curl_mimepart *part;
59 /* add a part */
60 part = curl_mime_addpart(mime);
62 /* give the part a name */
[all …]
H A Dcurl_mime_filename.md20 curl_mime_filename - set a mime part's remote filename
27 CURLcode curl_mime_filename(curl_mimepart *part,
33 curl_mime_filename(3) sets a mime part's remote filename. When remote
38 *part* is the part's handle to assign the remote filename to.
43 The remote filename string is copied into the part, thus the associated
58 curl_mimepart *part;
65 /* add a part */
66 part = curl_mime_addpart(mime);
69 curl_mime_data(part, imagebuf, sizeof(imagebuf));
72 curl_mime_filename(part, "image.png");
[all …]
H A Dcurl_mime_addpart.md27 curl_mime_addpart - append a new empty part to a mime structure
39 curl_mime_addpart(3) creates and appends a new empty part to the given
40 mime structure and returns a handle to it. The returned part handle can
43 *mime* is the handle of the mime structure in which the new part must be
54 curl_mimepart *part;
61 /* add a part */
62 part = curl_mime_addpart(mime);
64 /* continue and set name + data to the part */
65 curl_mime_data(part, "This is the field data", CURL_ZERO_TERMINATED);
66 curl_mime_name(part, "data");
[all …]
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.
34 *part* is the part's handle to assign the content type to.
53 - For a multipart part, multipart/mixed.
65 curl_mimepart *part;
72 /* add a part */
73 part = curl_mime_addpart(mime);
76 curl_mime_filedata(part, "image.png");
78 /* content-type for this part */
79 curl_mime_type(part, "image/png");
[all …]
H A Dcurl_mime_data.md21 curl_mime_data - set a mime part's body data from memory
28 CURLcode curl_mime_data(curl_mimepart *part, const char *data,
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
46 Setting a part's contents multiple times is valid: only the value set by the
47 last call is retained. It is possible to unassign part's contents by setting
61 curl_mimepart *part;
68 /* add a part */
69 part = curl_mime_addpart(mime);
71 /* add data to the part */
[all …]
H A Dcurl_mime_headers.md19 curl_mime_headers - set a mime part's custom headers
26 CURLcode curl_mime_headers(curl_mimepart *part,
32 curl_mime_headers(3) sets a mime part's custom headers.
34 *part* is the part's handle to assign the custom headers list to.
43 Setting a part's custom headers list multiple times is valid: only the value
56 curl_mimepart *part;
61 part = curl_mime_addpart(mime);
63 /* use these headers in the part, takes ownership */
64 curl_mime_headers(part, headers, 1);
67 curl_mime_data(part, "12345679", CURL_ZERO_TERMINATED);
[all …]
H A Dcurl_mime_filedata.md21 curl_mime_filedata - set a mime part's body data from a file contents
28 CURLcode curl_mime_filedata(curl_mimepart *part,
34 curl_mime_filedata(3) sets a mime part's body content from the named
36 data to a mime part.
38 *part* is the part's to assign contents to.
54 part is transferred using chunks by HTTP but is rejected by IMAP.
67 curl_mimepart *part;
74 /* add a part */
75 part = curl_mime_addpart(mime);
78 curl_mime_filedata(part, "image.png");
[all …]
H A Dcurl_mime_encoder.md20 curl_mime_encoder - set a mime part's encoder and content transfer encoding
27 CURLcode curl_mime_encoder(curl_mimepart *part, const char *encoding);
35 *part* is the part's handle to assign an encoder.
45 is added to the part.
68 curl_mime_headers(3) instead of setting a part encoder.
71 a part with content set with curl_mime_subparts(3) is strongly
82 curl_mimepart *part;
89 /* add a part */
90 part = curl_mime_addpart(mime);
93 curl_mime_filedata(part, "image.png");
[all …]
/curl/docs/examples/
H A Dsmtp-mime.c83 curl_mimepart *part; in main() local
121 part = curl_mime_addpart(alt); in main()
122 curl_mime_data(part, inline_html, CURL_ZERO_TERMINATED); in main()
123 curl_mime_type(part, "text/html"); in main()
126 part = curl_mime_addpart(alt); in main()
130 part = curl_mime_addpart(mime); in main()
131 curl_mime_subparts(part, alt); in main()
132 curl_mime_type(part, "multipart/alternative"); in main()
134 curl_mime_headers(part, slist, 1); in main()
137 part = curl_mime_addpart(mime); in main()
[all …]
/curl/tests/data/
H A Dtest57153 rtp: part 2 channel 1 size 10
54 rtp: part 2 channel 0 size 500
55 rtp: part 2 channel 0 size 196
56 rtp: part 2 channel 0 size 124
59 rtp: part 3 channel 1 size 10
60 rtp: part 3 channel 0 size 50
62 rtp: part 4 channel 0 size 42
63 rtp: part 4 channel 1 size 30
65 rtp: part 4 channel 0 size 85
66 rtp: part 4 channel 1 size 24
[all …]
/curl/tests/
H A Dgetpart.pm93 my ($section, $part)=@_;
105 if((1 ==$inside) && ( ($_ =~ /^ *\<$part ([^>]*)/) ||
106 !(defined($part)) )
122 elsif((2 ==$inside) && ($_ =~ /^ *\<\/$part/)) {
131 my ($section, $part)=@_;
144 elsif(($inside >= 1) && ($_ =~ /^ *\<$part[ \>]/)) {
148 elsif($_ =~ /$part [^>]*base64=/) {
152 elsif($_ =~ /$part [^>]*hex=/) {
158 elsif(($inside >= 2) && ($_ =~ /^ *\<\/$part[ \>]/)) {
210 my ($section, $part)=@_;
[all …]
/curl/src/
H A Dtool_formparse.c242 curl_mimepart *part = NULL; in tool2curlparts() local
250 if(!part) in tool2curlparts()
763 if(!part) in formparse()
765 *mimecurrent = part; in formparse()
808 if(!part) in formparse()
823 part->data = NULL; in formparse()
824 part->size = -1; in formparse()
845 if(!part) in formparse()
860 part->data = NULL; in formparse()
861 part->size = -1; in formparse()
[all …]
/curl/tests/server/
H A Dtestpart.c35 char *part; in main() local
42 int rc = getpart(&part, &partlen, argv[1], argv[2], stdin); in main()
47 printf("%c", part[i]); in main()
48 free(part); in main()
/curl/docs/libcurl/opts/
H A DCURLOPT_MIMEPOST.md58 curl_mimepart *part = curl_mime_addpart(multipart);
59 curl_mime_name(part, "name");
60 curl_mime_data(part, "daniel", CURL_ZERO_TERMINATED);
61 part = curl_mime_addpart(multipart);
62 curl_mime_name(part, "project");
63 curl_mime_data(part, "curl", CURL_ZERO_TERMINATED);
64 part = curl_mime_addpart(multipart);
65 curl_mime_name(part, "logotype-image");
66 curl_mime_filedata(part, "curl.png");
/curl/packages/OS400/
H A Dccsidcurl.h70 CURL_EXTERN CURLcode curl_mime_name_ccsid(curl_mimepart *part,
73 CURL_EXTERN CURLcode curl_mime_filename_ccsid(curl_mimepart *part,
76 CURL_EXTERN CURLcode curl_mime_type_ccsid(curl_mimepart *part,
79 CURL_EXTERN CURLcode curl_mime_encoder_ccsid(curl_mimepart *part,
82 CURL_EXTERN CURLcode curl_mime_filedata_ccsid(curl_mimepart *part,
85 CURL_EXTERN CURLcode curl_mime_data_ccsid(curl_mimepart *part,
89 char **part, unsigned int flags,
92 const char *part, unsigned int flags,

Completed in 31 milliseconds

12345678910