本帖最后由 vaseful 于 2015-5-2 12:07 编辑
[C#] 纯文本查看 复制代码 HttpHelper http = new HttpHelper(); HttpItem item; HttpResult res; string Html;
item = new HttpItem()
{
URL = "http://www.9yuan.org/admin/index.php?action=login",
Method = "POST",
UserAgent = "Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; WOW64; Trident/5.0)",
Accept = "application/json, text/javascript, */*; q=0.01",
ContentType = "application/x-www-form-urlencoded",
Postdata = "user=admin&pw=rety148754",
Referer = "http://www.9yuan.org/admin/",
};
item.Header.Add("Accept-Language", "zh-cn");
item.Header.Add("Accept-Encoding", "gzip, deflate");
res = http.GetHtml(item);
Html = res.Html;
textBox1.Text = Html;
HTTP/1.1 302 Moved Temporarily
Connection: close
Date: Sat, 02 May 2015 03:49:25 GMT
Server: Microsoft-IIS/6.0
X-Powered-By: PHP/5.2.17
Content-Type: text/html; charset=UTF-8
Set-Cookie: PHPSESSID=3hml33qilujks1clhjers9c7h6; path=/
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
Set-Cookie: EM_AUTHCOOKIE_lnpue8e54m1xoq3WlIW2UByBDnQ9wAO3=admin%7C%7C4d41597bb1c4a1effaa5171a7f60e390; path=/
Location: ./
用工具试了也是无法登陆!
|