Lines Matching refs:post

80   struct curl_httppost *post;
86 post = calloc(1, sizeof(struct curl_httppost));
87 if(post) {
88 post->name = name;
89 post->namelength = (long)namelength;
90 post->contents = value;
91 post->contentlen = contentslength;
92 post->buffer = buffer;
93 post->bufferlength = (long)bufferlength;
94 post->contenttype = contenttype;
95 post->contentheader = contentHeader;
96 post->showfilename = showfilename;
97 post->userp = userp;
98 post->flags = flags | CURL_HTTPPOST_LARGE;
105 post->more = parent_post->more;
108 parent_post->more = post;
113 (*last_post)->next = post;
115 (*httppost) = post;
117 (*last_post) = post;
119 return post;
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;
549 post = NULL;
553 if(((!form->name || !form->value) && !post) ||
632 post = AddHttpPost(form->name, form->namelength,
638 post, httppost,
641 if(!post) {
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,
826 if(!post)
837 for(; !result && post; post = post->next) {
840 if(post->more) {
845 result = setname(part, post->name, post->namelength);
856 for(file = post; !result && file; file = file->more) {
871 if(!result && !post->more)
872 result = setname(part, post->name, post->namelength);
876 curl_off_t clen = post->contentslength;
878 if(post->flags & CURL_HTTPPOST_LARGE)
879 clen = post->contentlen;
881 if(post->flags & (HTTPPOST_FILENAME | HTTPPOST_READFILE)) {
894 if(!result && (post->flags & HTTPPOST_READFILE))
897 else if(post->flags & HTTPPOST_BUFFER)
898 result = curl_mime_data(part, post->buffer,
899 post->bufferlength? post->bufferlength: -1);
900 else if(post->flags & HTTPPOST_CALLBACK) {
906 fread_func, NULL, NULL, post->userp);
914 result = curl_mime_data(part, post->contents, uclen);
919 if(!result && post->showfilename)
920 if(post->more || (post->flags & (HTTPPOST_FILENAME | HTTPPOST_BUFFER |
922 result = curl_mime_filename(part, post->showfilename);