即可用正常的webclient
try { System.Net.ServicePointManager.ServerCertificateValidationCallback = delegate(object senderX, System.Security.Cryptography.X509Certificates.X509Certificate certificate, System.Security.Cryptography.X509Certificates.X509Chain chain, System.Net.Security.SslPolicyErrors sslPolicyErrors) { return true; }; HtmlText = wc.DownloadString(wc.BaseAddress); } catch { System.Environment.Exit(System.Environment.ExitCode); }
沒有留言:
張貼留言
留個話吧:)