直接POST登录就可以了
POST
http://bbs.byr.cn/user/ajax_login.json不是GET请求
复制一段header来看看
POST /user/ajax_login.json HTTP/1.1
这里写的比较清楚了 POST过去
Host:
bbs.byr.cnConnection: keep-alive
Content-Length: 37
Accept: application/json, text/javascript, */*; q=0.01
Origin:
http://bbs.byr.cnX-Requested-With: XMLHttpRequest
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/33.0.1750.154 Safari/537.36
Content-Type: application/x-www-form-urlencoded; charset=UTF-8
DNT: 1
Referer:
http://bbs.byr.cn/indexAccept-Encoding: gzip,deflate,sdch
Accept-Language: zh-CN,zh;q=0.8,en;q=0.6,zh-TW;q=0.4,ja;q=0.2,nl;q=0.2
Cookie: nforum[UTMPUSERID]=guest; nforum[UTMPKEY]=7346893; nforum[UTMPNUM]=23586; __utma=217424581.1890372499.1396972428.1396972428.1396972428.1; __utmb=217424581.1.10.1396972428; __utmc=217424581; __utmz=217424581.1396972428.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); login-user=1
参数为:id=XXXX&passwd=XXXX&mode=XX&CookieDate=XX