mirror of
https://github.com/curl/curl.git
synced 2026-08-09 05:34:17 +03:00
config2setopt.c: refactor config2setopts
Introduce sub functions Closes #22215
This commit is contained in:
parent
7791b1629b
commit
8aeef462e3
9 changed files with 172 additions and 109 deletions
|
|
@ -13,9 +13,9 @@ int main(int argc, char *argv[])
|
|||
curl_easy_setopt(curl, CURLOPT_VERBOSE, 1L);
|
||||
curl_easy_setopt(curl, CURLOPT_BUFFERSIZE, 102400L);
|
||||
curl_easy_setopt(curl, CURLOPT_URL, "http://%HOSTIP:%HTTPPORT/we/want/%TESTNUMBER");
|
||||
curl_easy_setopt(curl, CURLOPT_USERAGENT, "curl/%VERSION");
|
||||
curl_easy_setopt(curl, CURLOPT_POSTFIELDS, "foo=bar&baz=quux");
|
||||
curl_easy_setopt(curl, CURLOPT_POSTFIELDSIZE_LARGE, (curl_off_t)16);
|
||||
curl_easy_setopt(curl, CURLOPT_USERAGENT, "curl/%VERSION");
|
||||
curl_easy_setopt(curl, CURLOPT_MAXREDIRS, 50L);
|
||||
curl_easy_setopt(curl, CURLOPT_TCP_KEEPALIVE, 1L);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue