在发送HTTP请求前加入下行代码

ServicePointManager.SecurityProtocol = (SecurityProtocolType)192 | (SecurityProtocolType)768 | (SecurityProtocolType)3072;

如果是4.5以上版本可以直接使用

ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12 | SecurityProtocolType.Tls11;

 

  

相关文章:

  • 2021-10-20
  • 2021-12-22
  • 2021-05-12
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-07-15
  • 2022-02-22
猜你喜欢
  • 2021-09-21
  • 1970-01-01
  • 2022-12-23
  • 2021-10-02
  • 2021-08-24
  • 2021-08-28
相关资源
相似解决方案