HttpClient doesn't support proxy server in HTTPS protocol in Linux
ms-hujia opened this issue · comments
From the document of HttpClient
, I saw below description:
The proxy server may be a hostname or IP address, optionally followed by a colon and port number, or it may be an http URL, optionally including a username and password for proxy authentication. The URL must be start with http, not https, and cannot include any text after the hostname, IP, or port.
I'm wondering if this is a platform specific limitation due to underlying stack, or it's due to some historical consideration which's gone away now. As using proxy server secured by HTTPS is common in customer's corpnet, could you help to evaluate if it's possible to support proxy server in HTTPS protocol by Linux? It's really frustrating as other clients/scripts written by Golang, Python, Ruby and curl could well support this scenario.
Tagging subscribers to this area: @dotnet/ncl
See info in area-owners.md if you want to be subscribed.
Looks like our docs are outdated here. HTTPS proxy support was added in .NET 8.0: #87638
The scheme may also be socks4
, socks4a
or socks5
.