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