From 4a889441d318f9133dc9f3eba1939e360a8f7d58 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Tue, 25 Aug 2015 09:20:56 +0200 Subject: 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. --- src/tool_getparam.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/tool_getparam.c') 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; -- cgit v1.2.3