











WebClient 指定安全协议(Tls1.1,Tls1.2,Tls1.3)
try { ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls11 | SecurityProtocolType.Tls12 | SecurityProtocolType.Tls13; var client = new WebClient(); var bytes = client.DownloadData("https://xxx"); } catch (Exception ex) { throw; }
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。