Lines Matching defs:post
90 struct curl_httppost *post;
91 post = calloc(1, sizeof(struct curl_httppost));
92 if(post) {
93 post->name = name;
94 post->namelength = (long)(name?(namelength?namelength:strlen(name)):0);
95 post->contents = value;
96 post->contentlen = contentslength;
97 post->buffer = buffer;
98 post->bufferlength = (long)bufferlength;
99 post->contenttype = contenttype;
100 post->contentheader = contentHeader;
101 post->showfilename = showfilename;
102 post->userp = userp,
103 post->flags = flags | CURL_HTTPPOST_LARGE;
110 post->more = parent_post->more;
113 parent_post->more = post;
118 (*last_post)->next = post;
120 (*httppost) = post;
122 (*last_post) = post;
124 return post;
225 * post parts. Byte arrays are either copied or just the pointer is stored
236 * curl_formadd (&post, &last, CURLFORM_COPYNAME, "name",
240 * curl_formadd (&post, &last, CURLFORM_COPYNAME, "name",
245 * curl_formadd (&post, &last, CURLFORM_COPYNAME, "name",
250 * curl_formadd (&post, &last, CURLFORM_COPYNAME, "name",
275 struct curl_httppost *post = NULL;
612 post = NULL;
616 if(((!form->name || !form->value) && !post) ||
679 post = AddHttpPost(form->name, form->namelength,
685 post, httppost,
688 if(!post) {
1008 * curl_formfree() is an external function to free up a whole form post
1145 * (possibly huge) multipart formdata. The input list is in 'post', while the
1147 * the total size of the whole POST.
1158 struct curl_httppost *post,
1174 if(!post)
1192 /* we DO NOT include that line in the total size of the POST, since it'll be
1219 result = AddFormData(&form, FORM_DATA, post->name, post->namelength,
1228 if(post->more) {
1247 file = post;
1255 if(post->more) {
1267 else if(post->flags & (HTTPPOST_FILENAME|HTTPPOST_BUFFER|
1272 if(post->showfilename || (post->flags & HTTPPOST_FILENAME)) {
1273 result = formdata_add_filename(post, &form, &size);
1304 if((post->flags & HTTPPOST_FILENAME) ||
1305 (post->flags & HTTPPOST_READFILE)) {
1347 else if(post->flags & HTTPPOST_BUFFER)
1349 result = AddFormData(&form, FORM_CONTENT, post->buffer,
1350 post->bufferlength, &size);
1351 else if(post->flags & HTTPPOST_CALLBACK)
1354 result = AddFormData(&form, FORM_CALLBACK, post->userp,
1355 post->flags&CURL_HTTPPOST_LARGE?
1356 post->contentlen:post->contentslength, &size);
1359 result = AddFormData(&form, FORM_CONTENT, post->contents,
1360 post->flags&CURL_HTTPPOST_LARGE?
1361 post->contentlen:post->contentslength, &size);
1368 if(post->more) {
1378 } while((post = post->next) != NULL); /* for each field */
1548 * the post).