Lines Matching refs:current_form
213 struct FormInfo *first_form, *current_form, *form = NULL; in FormAdd() local
233 current_form = first_form; in FormAdd()
280 current_form->flags |= HTTPPOST_PTRNAME; /* fall through */ in FormAdd()
284 if(current_form->name) in FormAdd()
290 current_form->name = name; /* store for the moment */ in FormAdd()
296 if(current_form->namelength) in FormAdd()
299 current_form->namelength = in FormAdd()
307 current_form->flags |= HTTPPOST_PTRCONTENTS; in FormAdd()
310 if(current_form->value) in FormAdd()
316 current_form->value = value; /* store for the moment */ in FormAdd()
322 current_form->contentslength = in FormAdd()
327 current_form->flags |= CURL_HTTPPOST_LARGE; in FormAdd()
328 current_form->contentslength = in FormAdd()
335 if(current_form->flags & (HTTPPOST_PTRCONTENTS|HTTPPOST_READFILE)) in FormAdd()
341 current_form->value = strdup(filename); in FormAdd()
342 if(!current_form->value) in FormAdd()
345 current_form->flags |= HTTPPOST_READFILE; in FormAdd()
346 current_form->value_alloc = TRUE; in FormAdd()
360 if(current_form->value) { in FormAdd()
361 if(current_form->flags & HTTPPOST_FILENAME) { in FormAdd()
367 form = AddFormInfo(fname, NULL, current_form); in FormAdd()
374 current_form = form; in FormAdd()
387 current_form->value = strdup(filename); in FormAdd()
388 if(!current_form->value) in FormAdd()
391 current_form->flags |= HTTPPOST_FILENAME; in FormAdd()
392 current_form->value_alloc = TRUE; in FormAdd()
402 current_form->flags |= HTTPPOST_PTRBUFFER|HTTPPOST_BUFFER; in FormAdd()
403 if(current_form->buffer) in FormAdd()
409 current_form->buffer = buffer; /* store for the moment */ in FormAdd()
410 current_form->value = buffer; /* make it non-NULL to be accepted in FormAdd()
419 if(current_form->bufferlength) in FormAdd()
422 current_form->bufferlength = in FormAdd()
427 current_form->flags |= HTTPPOST_CALLBACK; in FormAdd()
428 if(current_form->userp) in FormAdd()
434 current_form->userp = userp; in FormAdd()
435 current_form->value = userp; /* this is not strictly true but we in FormAdd()
449 if(current_form->contenttype) { in FormAdd()
450 if(current_form->flags & HTTPPOST_FILENAME) { in FormAdd()
456 form = AddFormInfo(NULL, type, current_form); in FormAdd()
463 current_form = form; in FormAdd()
476 current_form->contenttype = strdup(contenttype); in FormAdd()
477 if(!current_form->contenttype) in FormAdd()
480 current_form->contenttype_alloc = TRUE; in FormAdd()
495 if(current_form->contentheader) in FormAdd()
498 current_form->contentheader = list; in FormAdd()
507 if(current_form->showfilename) in FormAdd()
510 current_form->showfilename = strdup(filename); in FormAdd()
511 if(!current_form->showfilename) in FormAdd()
514 current_form->showfilename_alloc = TRUE; in FormAdd()