C# HttpWebResponse WebClient 基础连接已经关闭: 发送时发生错误.

2021-06-20 22:06

阅读:412

标签:https   framework   cep   api   com   1.2   work   http   man   

https://blog.csdn.net/sun49842566/article/details/82802297

 

    net 4.0 设置: ServicePointManager.SecurityProtocol = (SecurityProtocolType)3072;
    //.net 4.5 设置: ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls1.2;
     

 

附上官方说明

https://docs.microsoft.com/zh-cn/dotnet/api/system.net.securityprotocoltype?view=netframework-4.7.2

C# HttpWebResponse WebClient 基础连接已经关闭: 发送时发生错误.

标签:https   framework   cep   api   com   1.2   work   http   man   

原文地址:https://www.cnblogs.com/LuoEast/p/10256637.html


评论


亲,登录后才可以留言!