diff options
author | Daniel Stenberg <daniel@haxx.se> | 2015-12-14 13:29:13 +0100 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2015-12-15 13:59:56 +0100 |
commit | b4a39491cacde68c9ed5499db7fcc873976e1879 (patch) | |
tree | 478444c9901e9f465803c57dfe106e201d1c7de9 /src/tool_operate.c | |
parent | afcab2c2b602ee2ad45378505770c483d3b99207 (diff) |
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
Diffstat (limited to 'src/tool_operate.c')
-rw-r--r-- | src/tool_operate.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/tool_operate.c b/src/tool_operate.c index e5506c6fa..30d60cb33 100644 --- a/src/tool_operate.c +++ b/src/tool_operate.c @@ -1358,6 +1358,11 @@ static CURLcode operate_do(struct GlobalConfig *global, if(config->proto_default) my_setopt_str(curl, CURLOPT_DEFAULT_PROTOCOL, config->proto_default); + /* new in 7.47.0 */ + if(config->expect100timeout > 0) + my_setopt_str(curl, CURLOPT_EXPECT_100_TIMEOUT_MS, + (long)(config->expect100timeout*1000)); + /* initialize retry vars for loop below */ retry_sleep_default = (config->retry_delay) ? config->retry_delay*1000L : RETRY_SLEEP_DEFAULT; /* ms */ |