Open ms-hujia opened 4 months ago
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
.
Thanks for the information, Miha!
I've verified the different behavior of dotnet 7 and dotnet 8:
For dotnet 7, the HTTP request will succeed but it doesn't go through the proxy server in HTTPS protocol.
For dotnet 8, the HTTP request will succeed, and it goes through the proxy server and secured by TLS.
Hope above behaviors could be updated in the public document.
From the document of
HttpClient
, I saw below description: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.