这是POST的数据截图:
这里是HttpItem参数:
[C#] 纯文本查看 复制代码 var item = new HttpItem
{
URL = "http://xjxt.hnedu.cn/j_bsp_security_check/caLdap",
Method = "POST",
Accept = "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8",
ContentType = "application/x-www-form-urlencoded",
Referer = "http://xjxt.hnedu.cn/jsp/public/login.jsp",
Encoding = Encoding.UTF8,
Host = "xjxt.hnedu.cn",
Cookie = this._cookie,
Postdata = "_j_username=&j_username={0}&j_password={1}&rdmCode={2}".FormatEx(userName, password, vcode),
UserAgent = "Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Maxthon/4.4.1.5000 Chrome/30.0.1599.101 Safari/537.36",
Allowautoredirect = false,
Expect100Continue = true
};
item.Header.Add("Accept-Encoding", "gzip,deflate");
item.Header.Add("Accept-Language", "zh-CN");
//item.Header.Add("Content-Length", "113");
item.Header.Add("DNT", "1");
item.Header.Add("Origin", "http://xjxt.hnedu.cn");
你能帮我看看有什么问题吗?
|