基础连接已经关闭: 未能为 SSL/TLS 安全通道建立信任关系

 response = request.GetResponse(); 前加上这段:

ServicePointManager.ServerCertificateValidationCallback = (sender, certificate, chain, sslPolicyErrors) => true;

 


               

posted @ 2020-04-24 13:55  z_hj  阅读(825)  评论(0)    收藏  举报