////创建Httphelper对象
HttpHelper http = new HttpHelper();
ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls;
//创建Httphelper参数对象
HttpItem item = new HttpItem()
{
URL = "http://www.sufeinet.com"//URL 必需项
};
//请求的返回值对象
HttpResult result = http.GetHtml(item);
string html = result.Html;
//可以轻松获取上次请求所使用的参数
string url = result.item.URL;
//可以轻松获取上次请求所使用的参数
string url = result.item.URL;
hbq007 发表于 2018-9-26 20:44
希望增加 System.Net.Sockets 方式 http
欢迎光临 苏飞论坛 (http://www.sufeinet.com/) | Powered by Discuz! X3.4 |