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;
}

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-07-18
  • 2021-06-08
  • 2022-01-31
  • 2022-12-23
  • 2022-01-19
  • 2021-09-21
猜你喜欢
  • 2021-10-20
  • 2022-12-23
  • 2021-12-04
  • 2021-10-05
  • 2021-07-23
  • 2021-05-05
相关资源
相似解决方案