C# HTTPWEBREQUEST访问部分HTTPS网站一直超时
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又没问题,很奇怪,求思路!