Lines Matching defs:post
89 struct curl_httppost *post;
90 post = calloc(1, sizeof(struct curl_httppost));
91 if(post) {
92 post->name = name;
93 post->namelength = (long)(name?(namelength?namelength:strlen(name)):0);
94 post->contents = value;
95 post->contentlen = contentslength;
96 post->buffer = buffer;
97 post->bufferlength = (long)bufferlength;
98 post->contenttype = contenttype;
99 post->contentheader = contentHeader;
100 post->showfilename = showfilename;
101 post->userp = userp,
102 post->flags = flags | CURL_HTTPPOST_LARGE;
109 post->more = parent_post->more;
112 parent_post->more = post;
117 (*last_post)->next = post;
119 (*httppost) = post;
121 (*last_post) = post;
123 return post;
224 * post parts. Byte arrays are either copied or just the pointer is stored
235 * curl_formadd (&post, &last, CURLFORM_COPYNAME, "name",
239 * curl_formadd (&post, &last, CURLFORM_COPYNAME, "name",
244 * curl_formadd (&post, &last, CURLFORM_COPYNAME, "name",
249 * curl_formadd (&post, &last, CURLFORM_COPYNAME, "name",
274 struct curl_httppost *post = NULL;
611 post = NULL;
615 if(((!form->name || !form->value) && !post) ||
678 post = AddHttpPost(form->name, form->namelength,
684 post, httppost,
687 if(!post) {
991 * curl_formfree() is an external function to free up a whole form post
1128 * (possibly huge) multipart formdata. The input list is in 'post', while the
1130 * the total size of the whole POST.
1141 struct curl_httppost *post,
1157 if(!post)
1175 /* we DO NOT include that line in the total size of the POST, since it'll be
1202 result = AddFormData(&form, FORM_DATA, post->name, post->namelength,
1211 if(post->more) {
1230 file = post;
1238 if(post->more) {
1250 else if(post->flags & (HTTPPOST_FILENAME|HTTPPOST_BUFFER|
1255 if(post->showfilename || (post->flags & HTTPPOST_FILENAME)) {
1256 result = formdata_add_filename(post, &form, &size);
1287 if((post->flags & HTTPPOST_FILENAME) ||
1288 (post->flags & HTTPPOST_READFILE)) {
1330 else if(post->flags & HTTPPOST_BUFFER)
1332 result = AddFormData(&form, FORM_CONTENT, post->buffer,
1333 post->bufferlength, &size);
1334 else if(post->flags & HTTPPOST_CALLBACK)
1337 result = AddFormData(&form, FORM_CALLBACK, post->userp,
1338 post->flags&CURL_HTTPPOST_LARGE?
1339 post->contentlen:post->contentslength, &size);
1342 result = AddFormData(&form, FORM_CONTENT, post->contents,
1343 post->flags&CURL_HTTPPOST_LARGE?
1344 post->contentlen:post->contentslength, &size);
1351 if(post->more) {
1361 } while((post = post->next) != NULL); /* for each field */
1530 * the post).