[C#] 纯文本查看 复制代码 HttpHelper http = new HttpHelper();
HttpItem item = new HttpItem()
{
URL = "http://www.sufeinet.com/member.php?mod=logging&action=login&loginsubmit=yes&infloat=yes&lssubmit=yes&inajax=1",//URL 必需项
Method = "post",//URL 可选项 默认为Get
Referer ="http://www.sufeinet.com/",//来源URL 可选项
Postdata = "fastloginfield=username&username=Cheungnotes&password=mmmmmm&quickforward=yes&handlekey=ls",//Post数据 可选项GET时不需要写
ContentType = "application/x-www-form-urlencoded",//返回类型 可选项有默认值
ResultType = ResultType.String
};
HttpResult result = http.GetHtml(item);
string html = result.Html;
string cookie = result.Cookie;
用到的类
http://www.sufeinet.com/thread-3-1-1.html
多多搜索
|