diff options
author | Daniel Stenberg <daniel@haxx.se> | 2015-08-29 23:56:28 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2015-09-11 08:53:53 +0200 |
commit | 481e0de00a9003b9c5220b120e3fc302d9b0932d (patch) | |
tree | cff919570ca5e120c731a342652691522e230c67 /src/tool_operate.c | |
parent | df6a4d3519655b26137a90a440c5a99f4abe7e22 (diff) |
curl: point out unnecessary uses of -X in verbose mode
It uses 'Note:' as a prefix as opposed to the common 'Warning:' to take
down the tone a bit.
It adds a warning for using -XHEAD on other methods becasue that may
lead to a hanging connection.
Diffstat (limited to 'src/tool_operate.c')
-rw-r--r-- | src/tool_operate.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/tool_operate.c b/src/tool_operate.c index b3fa14644..38d355da5 100644 --- a/src/tool_operate.c +++ b/src/tool_operate.c @@ -1108,6 +1108,7 @@ static CURLcode operate_do(struct GlobalConfig *global, my_setopt_enum(curl, CURLOPT_TIMECONDITION, (long)config->timecond); my_setopt(curl, CURLOPT_TIMEVALUE, (long)config->condtime); my_setopt_str(curl, CURLOPT_CUSTOMREQUEST, config->customrequest); + customrequest_helper(config, config->httpreq, config->customrequest); my_setopt(curl, CURLOPT_STDERR, global->errors); /* three new ones in libcurl 7.3: */ |