如题。
------解决方案--------------------------------------------------------
http://blog.csdn.net/god00/article/details/6549279
去看看这里
------解决方案--------------------------------------------------------
------解决方案--------------------------------------------------------
http请求使用httpwebrequest类
请求https的话,在请求前加上这句代码:
ServicePointManager.ServerCertificateValidationCallback = new System.Net.Security.RemoteCertificateValidationCallback(CheckValidationResult);
其中CheckValidationResult:
private bool CheckValidationResult(object sender,
System.Security.Cryptography.X509Certificates.X509Certificate certificate,
System.Security.Cryptography.X509Certificates.X509Chain chain,
System.Net.Security.SslPolicyErrors errors)
{
return true;
}