diff options
author | Daniel Stenberg <daniel@haxx.se> | 2015-08-25 09:20:56 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2015-08-25 09:20:56 +0200 |
commit | 4a889441d318f9133dc9f3eba1939e360a8f7d58 (patch) | |
tree | 70eb52fd977b67edad237e758c6a4818f0beec48 /src/tool_getparam.c | |
parent | ce034356d2fc9ac94bca4959a4054169129bf5d8 (diff) |
curl: point out the conflicting HTTP methods if used
It isn't always clear to the user which options that cause the HTTP
methods to conflict so by spelling them out it should hopefully be
easier to understand why curl complains.
Diffstat (limited to 'src/tool_getparam.c')
-rw-r--r-- | src/tool_getparam.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tool_getparam.c b/src/tool_getparam.c index e97a1b98c..662c6eea2 100644 --- a/src/tool_getparam.c +++ b/src/tool_getparam.c @@ -1422,7 +1422,7 @@ ParameterError getparameter(char *flag, /* f or -long-flag */ &config->last_post, (subletter=='s')?TRUE:FALSE)) /* 's' means literal string */ return PARAM_BAD_USE; - if(SetHTTPrequest(config, HTTPREQ_POST, &config->httpreq)) + if(SetHTTPrequest(config, HTTPREQ_FORMPOST, &config->httpreq)) return PARAM_BAD_USE; break; |