From: Daniel Stenberg Date: Mon, 25 Feb 2002 09:08:28 +0000 (+0000) Subject: make sure -d is treated as a POST request and thus should fail if mixed X-Git-Tag: curl-7_9_5-pre4~18 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6a62fc4a40ab2e2dd26768dfa297ccb5299e50c3;p=curl make sure -d is treated as a POST request and thus should fail if mixed with -I for example --- diff --git a/src/main.c b/src/main.c index b6a811554..3cfd4a9b5 100644 --- a/src/main.c +++ b/src/main.c @@ -1176,8 +1176,8 @@ static ParameterError getparameter(char *flag, /* f or -long-flag */ config->postfields=postdata; } -/* if(SetHTTPrequest(HTTPREQ_SIMPLEPOST, &config->httpreq)) - return PARAM_BAD_USE;*/ + if(SetHTTPrequest(HTTPREQ_SIMPLEPOST, &config->httpreq)) + return PARAM_BAD_USE; break; case 'D': /* dump-header to given file name */