mirror of
https://github.com/curl/curl.git
synced 2026-08-25 18:53:39 +03:00
curl: add --proxy-header
This commit is contained in:
parent
fa0a5e6812
commit
4946ea05e2
4 changed files with 13 additions and 1 deletions
|
|
@ -222,6 +222,7 @@ static const struct LongShort aliases[]= {
|
|||
{"G", "get", FALSE},
|
||||
{"h", "help", FALSE},
|
||||
{"H", "header", TRUE},
|
||||
{"Hp", "proxy-header", TRUE},
|
||||
{"i", "include", FALSE},
|
||||
{"I", "head", FALSE},
|
||||
{"j", "junk-session-cookies", FALSE},
|
||||
|
|
@ -1404,7 +1405,10 @@ ParameterError getparameter(char *flag, /* f or -long-flag */
|
|||
break;
|
||||
case 'H':
|
||||
/* A custom header to append to a list */
|
||||
err = add2list(&config->headers, nextarg);
|
||||
if(subletter == 'p') /* --proxy-header */
|
||||
err = add2list(&config->proxyheaders, nextarg);
|
||||
else
|
||||
err = add2list(&config->headers, nextarg);
|
||||
if(err)
|
||||
return err;
|
||||
break;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue