Lines Matching refs:postdata
587 char *postdata = NULL; in data_urlencode() local
617 err = file2memory(&postdata, &size, file); in data_urlencode()
625 err = getstr(&postdata, p, ALLOW_BLANK); in data_urlencode()
628 size = strlen(postdata); in data_urlencode()
631 if(!postdata) { in data_urlencode()
634 postdata = strdup(""); in data_urlencode()
635 if(!postdata) in data_urlencode()
640 char *enc = curl_easy_escape(NULL, postdata, (int)size); in data_urlencode()
641 Curl_safefree(postdata); /* no matter if it worked or not */ in data_urlencode()
662 postdata = n; in data_urlencode()
667 *postp = postdata; in data_urlencode()
855 char *postdata = NULL; in set_data() local
861 err = data_urlencode(global, nextarg, &postdata, &size); in set_data()
886 err = file2memory(&postdata, &size, file); in set_data()
888 err = file2string(&postdata, file); in set_data()
889 if(postdata) in set_data()
890 size = strlen(postdata); in set_data()
898 if(!postdata) { in set_data()
901 postdata = strdup(""); in set_data()
902 if(!postdata) in set_data()
907 err = getstr(&postdata, nextarg, ALLOW_BLANK); in set_data()
910 size = strlen(postdata); in set_data()
915 if(curlx_dyn_len(&config->postdata)) { in set_data()
918 curlx_dyn_addn(&config->postdata, "&", 1)) in set_data()
922 if(!err && curlx_dyn_addn(&config->postdata, postdata, size)) in set_data()
925 Curl_safefree(postdata); in set_data()
927 config->postfields = curlx_dyn_ptr(&config->postdata); in set_data()