服务器未使用 TLS 1.2 响应 WebClient

server not responding to WebClient using TLS 1.2

虽然我专门使用 TLS 1.2,但服务器仍然拒绝连接。

我的代码在这里:https://dotnetfiddle.net/zcVum2

错误:远程服务器返回错误:(403) 禁止访问。

using (WebClient wc = new WebClient())
            {
            ServicePointManager.Expect100Continue = true;
            ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12;
            string url = "https://www.converse.com";
            wc.CachePolicy = new System.Net.Cache.RequestCachePolicy(System.Net.Cache.RequestCacheLevel.BypassCache);
            wc.Headers.Add("Cache-Control", "no-cache");
            wc.Encoding = Encoding.UTF8;
            string result = wc.DownloadString(url);
        }

我可以通过更改为.net core 来解决问题,即使不需要 SSL 配置