make sure -d is treated as a POST request and thus should fail if mixed
authorDaniel Stenberg <daniel@haxx.se>
Mon, 25 Feb 2002 09:08:28 +0000 (09:08 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Mon, 25 Feb 2002 09:08:28 +0000 (09:08 +0000)
with -I for example

src/main.c

index b6a8115..3cfd4a9 100644 (file)
@@ -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 */