mirror of
https://github.com/curl/curl.git
synced 2026-07-23 01:27:16 +03:00
made -G set request type
This commit is contained in:
parent
30d5401f31
commit
51d602f973
1 changed files with 2 additions and 0 deletions
|
|
@ -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 */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue