发布网友 发布时间:2024-10-03 12:39
共1个回答
热心网友 时间:1天前
if (uri.Scheme == "https") ServicePointManager.ServerCertificateValidationCallback = new RemoteCertificateValidationCallback(delegate(object sender, X509Certificate certificate, X509Chain chain, SslPolicyErrors sslPolicyErrors) { return true; });加上这句