我用android端调用某网站的登陆接口,获取他的cookie并且保存下来,之后我定位到这个网站的一篇帖子并写请求去发帖,当然传入我登录时返回的cookie, 可是根据返回的结果查看,并没有登陆上去, 请各位帮我参谋一下 不胜感激
cookies = httpClient.getCookieStore();拿到cookies
requestParams.addHeader("Referer", "http://comment.news.163.com/"
- "money_bbs" + "/" + "BDEIBVLQ00252G50" + ".html");定位到这篇帖子
http.configCookieStore(cookies);传入cookie
==》》》》》》》》》》》》》》》》》》》》》》》》》》》》》》》》》
<input type="checkbox" name="autologin" class="ntes-loginframe-checkbox">
<span class="c-fl">十天内免登录</span></label> <a href="http://reg.163.com/RecoverPassword.shtml?f=www" class="c-fr">忘记密码?</a> </span>
<button class="ntes-loginframe-btn">
登 录
</button>
===》》》》》》》》》》》》》》》》》》》》》》》》 上面是返回的结果中一段