摘要:
我使用HttpWebRequest访问其他网站时,出现"请求被中止:无法建立SSL / TLS安全通道"错误,于是goog和百度了一番,提供的答案基本是:ServicePointManager.ServerCertificateValidationCallback写委托public ResponseModel GetHtml(string url){ServicePointManager.ServerCertificateValidationCallback = ValidateServerCertificate;HttpWebRequest request = (Http 阅读全文