Lines Matching full:post
80 struct curl_httppost *post; in AddHttpPost() local
86 post = calloc(1, sizeof(struct curl_httppost)); in AddHttpPost()
87 if(post) { in AddHttpPost()
88 post->name = name; in AddHttpPost()
89 post->namelength = (long)namelength; in AddHttpPost()
90 post->contents = value; in AddHttpPost()
91 post->contentlen = contentslength; in AddHttpPost()
92 post->buffer = buffer; in AddHttpPost()
93 post->bufferlength = (long)bufferlength; in AddHttpPost()
94 post->contenttype = contenttype; in AddHttpPost()
95 post->contentheader = contentHeader; in AddHttpPost()
96 post->showfilename = showfilename; in AddHttpPost()
97 post->userp = userp; in AddHttpPost()
98 post->flags = flags | CURL_HTTPPOST_LARGE; in AddHttpPost()
105 post->more = parent_post->more; in AddHttpPost()
108 parent_post->more = post; in AddHttpPost()
113 (*last_post)->next = post; in AddHttpPost()
115 (*httppost) = post; in AddHttpPost()
117 (*last_post) = post; in AddHttpPost()
119 return post; in AddHttpPost()
164 * post parts. Byte arrays are either copied or just the pointer is stored
175 * curl_formadd (&post, &last, CURLFORM_COPYNAME, "name",
179 * curl_formadd (&post, &last, CURLFORM_COPYNAME, "name",
184 * curl_formadd (&post, &last, CURLFORM_COPYNAME, "name",
189 * curl_formadd (&post, &last, CURLFORM_COPYNAME, "name",
214 struct curl_httppost *post = NULL; in FormAdd() local
549 post = NULL; in FormAdd()
553 if(((!form->name || !form->value) && !post) || in FormAdd()
632 post = AddHttpPost(form->name, form->namelength, in FormAdd()
638 post, httppost, in FormAdd()
641 if(!post) { in FormAdd()
743 * curl_formfree() is an external function to free up a whole form post
806 * structure. The input list is in 'post', while the output is stored in
816 struct curl_httppost *post, in Curl_getformdata() argument
826 if(!post) in Curl_getformdata()
837 for(; !result && post; post = post->next) { in Curl_getformdata()
840 if(post->more) { in Curl_getformdata()
845 result = setname(part, post->name, post->namelength); in Curl_getformdata()
856 for(file = post; !result && file; file = file->more) { in Curl_getformdata()
871 if(!result && !post->more) in Curl_getformdata()
872 result = setname(part, post->name, post->namelength); in Curl_getformdata()
876 curl_off_t clen = post->contentslength; in Curl_getformdata()
878 if(post->flags & CURL_HTTPPOST_LARGE) in Curl_getformdata()
879 clen = post->contentlen; in Curl_getformdata()
881 if(post->flags & (HTTPPOST_FILENAME | HTTPPOST_READFILE)) { in Curl_getformdata()
894 if(!result && (post->flags & HTTPPOST_READFILE)) in Curl_getformdata()
897 else if(post->flags & HTTPPOST_BUFFER) in Curl_getformdata()
898 result = curl_mime_data(part, post->buffer, in Curl_getformdata()
899 post->bufferlength? post->bufferlength: -1); in Curl_getformdata()
900 else if(post->flags & HTTPPOST_CALLBACK) { in Curl_getformdata()
906 fread_func, NULL, NULL, post->userp); in Curl_getformdata()
914 result = curl_mime_data(part, post->contents, uclen); in Curl_getformdata()
919 if(!result && post->showfilename) in Curl_getformdata()
920 if(post->more || (post->flags & (HTTPPOST_FILENAME | HTTPPOST_BUFFER | in Curl_getformdata()
922 result = curl_mime_filename(part, post->showfilename); in Curl_getformdata()