你好我想获取从HTTPS网页数据(我不是后面防火墙或代理)然而,即使接受它不断抛出的所有证书System.Net.WebExceptionStatus.SecureChannelFailure
与显示的消息:取消请求:无法创建安全的SSL / TLS通道......我到处找那么你们是我最后的机会。
static void Main(string[] args)
{
RemoteCertificateValidationCallback ServerCertificateValidationCallback = delegate { return true; };
HttpWebRequest request = (HttpWebRequest)WebRequest.Create("https://miyoigo.yoigo.com");
HttpWebResponse response = (HttpWebResponse)request.GetResponse();
using (StreamReader reader = new StreamReader(response.GetResponseStream()))
{
Console.Write(reader.ReadToEnd());
}
}
提前致谢 ;)