2013年9月23日星期一

Httpclient4.X analog login session after the success of Tencent microblogging lapse

I use httpclient4.X simulation log Tencent microblogging Tencent microblogging mainly by analyzing the login procedure shown below ,

executed 1.http :/ / check.ptlogin2.qq.com/check ... and 2.http :/ / ptlogin2.qq.com/login ..., ( passwords and other parameters to construct are correct )
Tencent microblogging successful login information returned by the server , but the question is, in the past, returns after a successful login the httpclient object access available Tencent microblogging all need to log in to access the page. And now displayed after a successful login session , but failed, to solve ?

Second, observe the browser to log in , after the implementation of the above two steps , there is a http://ptlogin4.t.qq.com/check_sig ... 's request, studied for a long time did not understand , which has a parameters ptsig not constructed , hope Xiongtai wing, it is Tencent microblogging intentionally added to this request restrictions analog login ?



------ Solution ------------------------------------ --------
I know the reason is the cookie problem
Three months ago I also did Tencent microblogging program , finishing two days old when the program you said this issue
wondering for quite some time to figure out
Cookie can post after landing microblogging , but other individual features to die
There is a need to get to the value COOKIE
As you say , I know the reason why
plus under my QQ, I also want to tell you a little place together studies
635642423
------ For reference only --------------------------------- ------
there any heroes to further analysis under study ah
------ For reference only ---------------- -----------------------
landlord solution waiting
------ For reference only ----- ----------------------------------
in http://ptlogin2.qq.com/login. the return result .. there are links http://check.ptlogin2.qq.com/check .... Use your browser's debugging tools to see , with the fiddler grasped saw . Without a separate structure , equivalent secondary login .


------ For reference only ----- ----------------------------------

issue is resolved, Tencent revision, parameters sent a few more , as long as the number of parameters pass over , get back links need to have a second step 302 link. Below floor interface
------ For reference only ---------------------------------- -----

issue is resolved, Tencent revision, the parameters sent a few more , as long as the number of parameters pass over , get back links need to have a second step 302 link. Below floor interface  

this address into the browser is the state 302 , and can get cookie, but put java, requests , status is 200, and for less than a cookie. Very strange situation , I do not know how to achieve it upstairs ?

没有评论:

发表评论