• Home
  • Raw
  • Download

Lines Matching refs:post

90   struct curl_httppost *post;  in AddHttpPost()  local
91 post = calloc(1, sizeof(struct curl_httppost)); in AddHttpPost()
92 if(post) { in AddHttpPost()
93 post->name = name; in AddHttpPost()
94 post->namelength = (long)(name?(namelength?namelength:strlen(name)):0); in AddHttpPost()
95 post->contents = value; in AddHttpPost()
96 post->contentlen = contentslength; in AddHttpPost()
97 post->buffer = buffer; in AddHttpPost()
98 post->bufferlength = (long)bufferlength; in AddHttpPost()
99 post->contenttype = contenttype; in AddHttpPost()
100 post->contentheader = contentHeader; in AddHttpPost()
101 post->showfilename = showfilename; in AddHttpPost()
102 post->userp = userp, in AddHttpPost()
103 post->flags = flags | CURL_HTTPPOST_LARGE; in AddHttpPost()
110 post->more = parent_post->more; in AddHttpPost()
113 parent_post->more = post; in AddHttpPost()
118 (*last_post)->next = post; in AddHttpPost()
120 (*httppost) = post; in AddHttpPost()
122 (*last_post) = post; in AddHttpPost()
124 return post; in AddHttpPost()
275 struct curl_httppost *post = NULL; in FormAdd() local
612 post = NULL; in FormAdd()
616 if(((!form->name || !form->value) && !post) || in FormAdd()
679 post = AddHttpPost(form->name, form->namelength, in FormAdd()
685 post, httppost, in FormAdd()
688 if(!post) { in FormAdd()
1158 struct curl_httppost *post, in Curl_getformdata() argument
1174 if(!post) in Curl_getformdata()
1219 result = AddFormData(&form, FORM_DATA, post->name, post->namelength, in Curl_getformdata()
1228 if(post->more) { in Curl_getformdata()
1247 file = post; in Curl_getformdata()
1255 if(post->more) { in Curl_getformdata()
1267 else if(post->flags & (HTTPPOST_FILENAME|HTTPPOST_BUFFER| in Curl_getformdata()
1272 if(post->showfilename || (post->flags & HTTPPOST_FILENAME)) { in Curl_getformdata()
1273 result = formdata_add_filename(post, &form, &size); in Curl_getformdata()
1304 if((post->flags & HTTPPOST_FILENAME) || in Curl_getformdata()
1305 (post->flags & HTTPPOST_READFILE)) { in Curl_getformdata()
1347 else if(post->flags & HTTPPOST_BUFFER) in Curl_getformdata()
1349 result = AddFormData(&form, FORM_CONTENT, post->buffer, in Curl_getformdata()
1350 post->bufferlength, &size); in Curl_getformdata()
1351 else if(post->flags & HTTPPOST_CALLBACK) in Curl_getformdata()
1354 result = AddFormData(&form, FORM_CALLBACK, post->userp, in Curl_getformdata()
1355 post->flags&CURL_HTTPPOST_LARGE? in Curl_getformdata()
1356 post->contentlen:post->contentslength, &size); in Curl_getformdata()
1359 result = AddFormData(&form, FORM_CONTENT, post->contents, in Curl_getformdata()
1360 post->flags&CURL_HTTPPOST_LARGE? in Curl_getformdata()
1361 post->contentlen:post->contentslength, &size); in Curl_getformdata()
1368 if(post->more) { in Curl_getformdata()
1378 } while((post = post->next) != NULL); /* for each field */ in Curl_getformdata()