[C#] 纯文本查看 复制代码 //创建Httphelper对象
HttpHelper http = new HttpHelper();
//创建Httphelper参数对象
HttpItem item = new HttpItem()
{
URL = VIPqqlivn.URL(),//URL 必需项
Method = "POST",//URL 可选项 默认为Get
//ContentType = "application/x-www-form-urlencoded",//返回类型 可选项有默认值
PostDataType = PostDataType.String,//默认为字符串,同时支持Byte和文件方法
//PostEncoding = System.Text.Encoding.UTF8,//默认为Default,
Postdata = "QQ=123&name=ssss",//Post要发送的数据
};
//请求的返回值对象
HttpResult result = http.GetHtml(item);
//获取请请求的Html
string html = result.Html;
//获取请求的Cookie
string cookie = result.Cookie;
|