mirror of
https://github.com/curl/curl.git
synced 2026-08-25 02:53:32 +03:00
curl: add --proxy-http2
For trying HTTP/2 with an HTTPS proxy. Closes #10926
This commit is contained in:
parent
c39f981ff4
commit
e39754f6a2
5 changed files with 31 additions and 2 deletions
|
|
@ -211,6 +211,7 @@ static const struct LongShort aliases[]= {
|
|||
{"04", "http3", ARG_NONE},
|
||||
{"05", "http3-only", ARG_NONE},
|
||||
{"09", "http0.9", ARG_BOOL},
|
||||
{"0a", "proxy-http2", ARG_BOOL},
|
||||
{"1", "tlsv1", ARG_NONE},
|
||||
{"10", "tlsv1.0", ARG_NONE},
|
||||
{"11", "tlsv1.1", ARG_NONE},
|
||||
|
|
@ -1449,6 +1450,10 @@ ParameterError getparameter(const char *flag, /* f or -long-flag */
|
|||
/* Allow HTTP/0.9 responses! */
|
||||
config->http09_allowed = toggle;
|
||||
break;
|
||||
case 'a':
|
||||
/* --proxy-http2 */
|
||||
config->proxyver = CURLPROXY_HTTPS2;
|
||||
break;
|
||||
}
|
||||
break;
|
||||
case '1': /* --tlsv1* options */
|
||||
|
|
@ -2373,7 +2378,8 @@ ParameterError getparameter(const char *flag, /* f or -long-flag */
|
|||
default:
|
||||
/* --proxy */
|
||||
GetStr(&config->proxy, nextarg);
|
||||
config->proxyver = CURLPROXY_HTTP;
|
||||
if(config->proxyver != CURLPROXY_HTTPS2)
|
||||
config->proxyver = CURLPROXY_HTTP;
|
||||
break;
|
||||
}
|
||||
break;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue