[C#] 纯文本查看 复制代码
string postData = null;
postData += "&username=" + 登录帐号;
postData += "&url2=http://email.163.com/errorpage/error163.htm";
postData += "&savalogin=0";
postData += "&password=" + 登录密码;
HttpItem item = new HttpItem()
{
URL = "https://mail.163.com/entry/cgi/ntesdoor?funcid=loginone&language=-1&passtype=1&iframe=1&product=mail163&from=web&df=email163&race=
-2_56_-2_hz&module=&uid=" + 登录帐号 + "&style=-1&net=t&skinid=null",
Postdata = postData,
Method = "POST",
Encoding = Encoding.UTF8,
Cookie = Cookies,
ResultType = ResultType.String
};
string html = new HttpHelper().GetHtml(item).Html;
string resultHtml = StringHelper.GetRegexValue(html, "top.location.href = \"", "\"");
string sid = StringHelper.GetRegexValue(html, "sid=", "&");
得到sid就可以了 |