使用.NET 4.5 新加的属性 HttpWebRequest.ServerCertificateValidationCallback。
HttpWebRequest request = (HttpWebRequest)WebRequest.Create(url); request.ServerCertificateValidationCallback = (_s, _x509s, _x509c, _ssl) => { return (true); };
-
标签:C#,request,校验,ServerCertificateValidationCallback,HttpWebRequest,NET From: https://www.cnblogs.com/runliuv/p/16982687.html