java 如何登陆 hotmail?

Mybeautiful 2012-09-13 10:29:37
知道用户名密码, 如何用程序实现登陆?

页面 https://login.live.com/oauth20_authorize.srf?client_id=000000004C0BC566&scope=wl.basic&response_type=code

使用httplcient,并通过Chrome分析了页面,发现一些hidden是通过js动态生成的。 总过有这些 值需要post,


formDate.setProperty("login",userId);
formDate.setProperty("passwd",password);

formDate.setProperty("KMSI","1");
formDate.setProperty("SI","Sign in");
formDate.setProperty("type","11");
formDate.setProperty("PPFT","CjZtwGNhWSvH4v3GtECp!eXncQM*5Gi4seSZ4KWMFQTbS8Ys9kOpXwuL!dFr9sg1S5NmjX5A097Lgpnf!Q*EkoYF9nM0GkDEPMmPf6J5vAKK7ADmayIc3XJbciuoK0t*cQ$$");
formDate.setProperty("PPSX","P");
formDate.setProperty("idsbho","1");
formDate.setProperty("sso","0");
formDate.setProperty("NewUser","1");
formDate.setProperty("LoginOptions","3");
formDate.setProperty("i1","0");
formDate.setProperty("i2","1");
formDate.setProperty("i3","14132");
formDate.setProperty("i4","0");
formDate.setProperty("i7","0");
formDate.setProperty("i12","1");
formDate.setProperty("i13","0");
formDate.setProperty("i14","269");
formDate.setProperty("i16","1032");
formDate.setProperty("i17","0");
formDate.setProperty("i18","__Login_Strings|1,__Login_Core|1,");


但实际测试时,总是失败,应该是某些值传的不对,有相关经验的朋友请指点一二,或是有其他变通办法?
...全文
53 点赞 收藏 回复
写回复
回复

还没有回复,快来抢沙发~

发动态
发帖子
Java SE
创建于2007-09-28

3.4w+

社区成员

30.7w+

社区内容

Java 2 Standard Edition
社区公告
暂无公告