Skip to content

Commit

Permalink
transfers/conn/proxies.md: mention CURLPROXY_HTTPS2
Browse files Browse the repository at this point in the history
Fixes #354
Closes #473
  • Loading branch information
bagder committed Jun 15, 2024
1 parent c0fbb83 commit bfddbe0
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion transfers/conn/proxies.md
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,12 @@ proxy as `CURLOPT_CAINFO` is for the remote
host. `CURLOPT_PROXY_SSL_VERIFYPEER` is the proxy version of
`CURLOPT_SSL_VERIFYPEER` and so on.

HTTPS proxies are still today fairly unusual in organizations and companies.
libcurl speaks HTTP/1 to HTTPS proxies by default. You can make it try using
HTTP/2 by setting `CURLOPT_PROXYTYPE` to `CURLPROXY_HTTPS2` when the proxy is
also set to use a `https://` scheme. When using HTTP/2 to the proxy, libcurl
can reuse the proxy connection and do multiplexed transfers over that when
talking to different remote server as long as the remote protocol is not TLS
based.

## Proxy authentication

Expand Down

0 comments on commit bfddbe0

Please sign in to comment.