Lines Matching refs:current_form

211   struct FormInfo *first_form, *current_form, *form = NULL;
231 current_form = first_form;
278 current_form->flags |= HTTPPOST_PTRNAME; /* fall through */
282 if(current_form->name)
288 current_form->name = name; /* store for the moment */
294 if(current_form->namelength)
297 current_form->namelength =
305 current_form->flags |= HTTPPOST_PTRCONTENTS;
308 if(current_form->value)
314 current_form->value = value; /* store for the moment */
320 current_form->contentslength =
325 current_form->flags |= CURL_HTTPPOST_LARGE;
326 current_form->contentslength =
332 if(current_form->flags & (HTTPPOST_PTRCONTENTS|HTTPPOST_READFILE))
338 current_form->value = strdup(filename);
339 if(!current_form->value)
342 current_form->flags |= HTTPPOST_READFILE;
343 current_form->value_alloc = TRUE;
357 if(current_form->value) {
358 if(current_form->flags & HTTPPOST_FILENAME) {
364 form = AddFormInfo(fname, NULL, current_form);
371 current_form = form;
384 current_form->value = strdup(filename);
385 if(!current_form->value)
388 current_form->flags |= HTTPPOST_FILENAME;
389 current_form->value_alloc = TRUE;
399 current_form->flags |= HTTPPOST_PTRBUFFER|HTTPPOST_BUFFER;
400 if(current_form->buffer)
406 current_form->buffer = buffer; /* store for the moment */
407 current_form->value = buffer; /* make it non-NULL to be accepted
416 if(current_form->bufferlength)
419 current_form->bufferlength =
424 current_form->flags |= HTTPPOST_CALLBACK;
425 if(current_form->userp)
431 current_form->userp = userp;
432 current_form->value = userp; /* this isn't strictly true but we
446 if(current_form->contenttype) {
447 if(current_form->flags & HTTPPOST_FILENAME) {
453 form = AddFormInfo(NULL, type, current_form);
460 current_form = form;
473 current_form->contenttype = strdup(contenttype);
474 if(!current_form->contenttype)
477 current_form->contenttype_alloc = TRUE;
492 if(current_form->contentheader)
495 current_form->contentheader = list;
504 if(current_form->showfilename)
507 current_form->showfilename = strdup(filename);
508 if(!current_form->showfilename)
511 current_form->showfilename_alloc = TRUE;