From: Daniel Stenberg Date: Tue, 19 Mar 2002 14:58:35 +0000 (+0000) Subject: made -G set request type X-Git-Tag: curl-7_9_6~67 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=51d602f9737635f6497feb8c5e10d71fd1914cfc;p=curl made -G set request type --- diff --git a/src/main.c b/src/main.c index 4a3f487cd..5ede3fac0 100644 --- a/src/main.c +++ b/src/main.c @@ -1344,6 +1344,8 @@ static ParameterError getparameter(char *flag, /* f or -long-flag */ case 'G': /* HTTP GET */ config->use_httpget = TRUE; + if(SetHTTPrequest(HTTPREQ_GET, &config->httpreq)) + return PARAM_BAD_USE; break; case 'h': /* h for help */