https请求时报错:未能创建 SSL/TLS 安全通道
解决方法:
Framework 4.0以上的版本 添加
System.Net.ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12;
Framework 4.0的版本 添加
ServicePointManager.SecurityProtocol = (SecurityProtocolType)3072;
https请求时报错:未能创建 SSL/TLS 安全通道
解决方法:
Framework 4.0以上的版本 添加
System.Net.ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12;
Framework 4.0的版本 添加
ServicePointManager.SecurityProtocol = (SecurityProtocolType)3072;
上一篇:kmp算法
举报文章
请选择举报类型
补充说明
0/200
上传截图
格式支持JPEG/PNG/JPG,图片不超过1.9M