mirror of
https://github.com/curl/curl.git
synced 2026-08-25 02:23:31 +03:00
tool_getparam: build post data using dynbuf (more)
This commit is contained in:
parent
1dba44b2f1
commit
1f4433dad4
5 changed files with 26 additions and 55 deletions
|
|
@ -660,7 +660,7 @@ CURLcode tool_setopt(CURL *curl, bool str, struct GlobalConfig *global,
|
|||
if(escape) {
|
||||
curl_off_t len = ZERO_TERMINATED;
|
||||
if(tag == CURLOPT_POSTFIELDS)
|
||||
len = config->postfieldsize;
|
||||
len = curlx_dyn_len(&config->postdata);
|
||||
escaped = c_escape(value, len);
|
||||
NULL_CHECK(escaped);
|
||||
CODE2("curl_easy_setopt(hnd, %s, \"%s\");", name, escaped);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue