mirror of
https://github.com/curl/curl.git
synced 2026-07-31 21:18:04 +03:00
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.
This commit is contained in:
parent
df6a4d3519
commit
481e0de00a
5 changed files with 65 additions and 16 deletions
|
|
@ -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: */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue