[C#] 纯文本查看 复制代码
ontentType = "application/x-www-for ...[/quote]
谢谢站长的耐心回复!
请问是这样处理吗:
[mw_shl_code=csharp,true] private void button1_Click(object sender, EventArgs e)
{
item = new HttpItem()
{
URL = "http://www.nydus2015.info/login?callback=/loginbbs",
Method = "POST",
[color=Red] Accept = "*/*",
ContentType = "application/x-www-form-urlencoded",[/color]
// Accept = "image/gif, image/jpeg, image/pjpeg, image/pjpeg, application/msword, application/vnd.ms-excel, application/vnd.ms-powerpoint, application/x-ms-application, application/x-ms-xbap, application/vnd.ms-xpsdocument, application/xaml+xml, */*",
Referer = "http://www.nydus2015.info/login?callback=/loginbbs",
UserAgent = "Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 2.0.50727; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022)",
Postdata = string.Format("username={0}&password={1}&code={2}", txtUser.Text.Trim(), txtPass.Text.Trim(),txtVerCode.Text.Trim()),
Cookie = Cookies
};
result = http.GetHtml(item);
retCode = result.Html;
}