C# HTTPWEBREQUEST访问部分HTTPS网站一直超时

HHDJSDNNM 2017-09-14 01:41:52
C# HTTPWEBREQUEST访问部分HTTPS网站一直超时
设置了并发数目为500,关闭了request和response
ServicePointManager.DefaultConnectionLimit = 500;
ServicePointManager.Expect100Continue = true;
ServicePointManager.CheckCertificateRevocationList = false;
ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls;
ServicePointManager.ServerCertificateValidationCallback = new RemoteCertificateValidationCallback(CheckValidationResult);
这些都设置了,在一些电脑上依然无法访问https协议的内容,在自己电脑上又正常,但也不是每个https都不行,是微信网页版的https不行,直接把https改成http又没问题,很奇怪,求思路!
...全文
449 回复 打赏 收藏 转发到动态 举报
写回复
用AI写文章
回复
切换为时间正序
请发表友善的回复…
发表回复

110,534

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术 C#
社区管理员
  • C#
  • Web++
  • by_封爱
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

让您成为最强悍的C#开发者

试试用AI创作助手写篇文章吧