mirror of
https://github.com/curl/curl.git
synced 2026-08-25 16:03:40 +03:00
curl --expect100-timeout: added
This is the new command line option to set the value for the existing libcurl option CURLOPT_EXPECT_100_TIMEOUT_MS
This commit is contained in:
parent
afcab2c2b6
commit
b4a39491ca
5 changed files with 20 additions and 0 deletions
|
|
@ -179,6 +179,7 @@ static const struct LongShort aliases[]= {
|
|||
{"$O", "proxy-service-name", TRUE},
|
||||
{"$P", "service-name", TRUE},
|
||||
{"$Q", "proto-default", TRUE},
|
||||
{"$R", "expect100-timeout", TRUE},
|
||||
{"0", "http1.0", FALSE},
|
||||
{"01", "http1.1", FALSE},
|
||||
{"02", "http2", FALSE},
|
||||
|
|
@ -999,6 +1000,11 @@ ParameterError getparameter(char *flag, /* f or -long-flag */
|
|||
if(err)
|
||||
return err;
|
||||
break;
|
||||
case 'R': /* --expect100-timeout */
|
||||
err = str2udouble(&config->expect100timeout, nextarg);
|
||||
if(err)
|
||||
return err;
|
||||
break;
|
||||
}
|
||||
break;
|
||||
case '#': /* --progress-bar */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue