ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12;
ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12;
HttpHelper http = new HttpHelper();
HttpItem item = new HttpItem()
{
URL = "https://wx.qq.com",//URL 必需项
};
HttpResult result = http.GetHtml(item);
string html = result.Html;
string cookie = result.Cookie;
gaide168 发表于 2016-6-2 15:09
没有 Tls12 这个属性老大.你用的是,net哪个版本
gaide168 发表于 2016-6-2 15:09
没有 Tls12 这个属性老大.你用的是,net哪个版本
站长苏飞 发表于 2016-6-2 15:20
没有肯定有这个吧
ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls;
一样的
欢迎光临 苏飞论坛 (http://www.sufeinet.com/) | Powered by Discuz! X3.4 |