Lines Matching refs:post

82   struct curl_httppost *post;  in AddHttpPost()  local
88 post = calloc(1, sizeof(struct curl_httppost)); in AddHttpPost()
89 if(post) { in AddHttpPost()
90 post->name = name; in AddHttpPost()
91 post->namelength = (long)namelength; in AddHttpPost()
92 post->contents = value; in AddHttpPost()
93 post->contentlen = contentslength; in AddHttpPost()
94 post->buffer = buffer; in AddHttpPost()
95 post->bufferlength = (long)bufferlength; in AddHttpPost()
96 post->contenttype = contenttype; in AddHttpPost()
97 post->contentheader = contentHeader; in AddHttpPost()
98 post->showfilename = showfilename; in AddHttpPost()
99 post->userp = userp; in AddHttpPost()
100 post->flags = flags | CURL_HTTPPOST_LARGE; in AddHttpPost()
107 post->more = parent_post->more; in AddHttpPost()
110 parent_post->more = post; in AddHttpPost()
115 (*last_post)->next = post; in AddHttpPost()
117 (*httppost) = post; in AddHttpPost()
119 (*last_post) = post; in AddHttpPost()
121 return post; in AddHttpPost()
216 struct curl_httppost *post = NULL; in FormAdd() local
552 post = NULL; in FormAdd()
556 if(((!form->name || !form->value) && !post) || in FormAdd()
635 post = AddHttpPost(form->name, form->namelength, in FormAdd()
641 post, httppost, in FormAdd()
644 if(!post) { in FormAdd()
819 struct curl_httppost *post, in Curl_getformdata() argument
829 if(!post) in Curl_getformdata()
840 for(; !result && post; post = post->next) { in Curl_getformdata()
843 if(post->more) { in Curl_getformdata()
848 result = setname(part, post->name, post->namelength); in Curl_getformdata()
859 for(file = post; !result && file; file = file->more) { in Curl_getformdata()
874 if(!result && !post->more) in Curl_getformdata()
875 result = setname(part, post->name, post->namelength); in Curl_getformdata()
879 curl_off_t clen = post->contentslength; in Curl_getformdata()
881 if(post->flags & CURL_HTTPPOST_LARGE) in Curl_getformdata()
882 clen = post->contentlen; in Curl_getformdata()
884 if(post->flags & (HTTPPOST_FILENAME | HTTPPOST_READFILE)) { in Curl_getformdata()
897 if(!result && (post->flags & HTTPPOST_READFILE)) in Curl_getformdata()
900 else if(post->flags & HTTPPOST_BUFFER) in Curl_getformdata()
901 result = curl_mime_data(part, post->buffer, in Curl_getformdata()
902 post->bufferlength ? in Curl_getformdata()
903 post->bufferlength : -1); in Curl_getformdata()
904 else if(post->flags & HTTPPOST_CALLBACK) { in Curl_getformdata()
910 fread_func, NULL, NULL, post->userp); in Curl_getformdata()
918 result = curl_mime_data(part, post->contents, uclen); in Curl_getformdata()
923 if(!result && post->showfilename) in Curl_getformdata()
924 if(post->more || (post->flags & (HTTPPOST_FILENAME | HTTPPOST_BUFFER | in Curl_getformdata()
926 result = curl_mime_filename(part, post->showfilename); in Curl_getformdata()