62,046
社区成员
发帖
与我相关
我的任务
分享
ServicePointManager.ServerCertificateValidationCallback = (sender, certificate, chain, sslPolicyErrors) => true;
ServicePointManager.Expect100Continue = true;
ServicePointManager.SecurityProtocol = ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12 | SecurityProtocolType.Tls11 | SecurityProtocolType.Tls | SecurityProtocolType.Ssl3;
//已经设置下面的属性,也添加了,忽略验证证书
request.UseDefaultCredentials = true;
System.Net.ServicePointManager.SecurityProtocol //这个四种协议都试了