mirror of
https://github.com/curl/curl.git
synced 2026-08-24 18:23:33 +03:00
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.
This commit is contained in:
parent
ce034356d2
commit
4a889441d3
4 changed files with 16 additions and 8 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue