关于httpclient使用post登陆百度新地址https://passport.baidu.com/v2/api/?login问题
使用httpclient登陆百度新地址https://passport.baidu.com/v2/api/?login登陆不成功,返回的为
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<script type="text/javascript">
var url = encodeURI('http://wenku.baidu.com/static/common/html/reg/v2Jump.html?error=119998&callback=&index=0&username=&phonenumber=&mail=&tpl=mn&u=http%3A%2F%2Fwenku.baidu.com%2Ftopic%2Fkaixueji2012%2Findex.html%3Ffr%3Dqipao&needToModifyPassword=0');
window.location.replace(url);
</script>
</body>
</html>
网上说要获取cookie在通过cookie获取token,但是这样获取后设置进去结果还是一样。设置的参数如下
parameters.put("password", "*****");
parameters.put("username", "*****");
parameters.put("charset", "UTF-8");
parameters.put("codestring", "");
parameters.put("index", "0");
parameters.put("isPhone", "false");
parameters.put("loginType", "1");
parameters.put("mem_pass", "on");
parameters.put("ppui_logintime", "12897");
parameters.put("safeflg", "0");
parameters.put("staticpage",
"http://wenku.baidu.com/static/common/html/reg/v2Jump.html");
parameters.put("token", getToken(cookie));
parameters.put("tpl", "mn");
parameters.put("u","http://wenku.baidu.com/topic/kaixueji2012/index.html?fr=qipao");
求高手指教