Educational administration system developed by using HttpClient simulation Landing Square Software Co., Ltd.

Source: Internet
Author: User
Tags fiddler2

In advance, I write this, just to share, login website not only use cookies this way, there is a method of using random code, and did not divulge the idea of "trade secret", I Caishuxueqian, just standing on the shoulders of giants, picked a small apple ...

Bishi ing ...

There is a module is to obtain the educational management system within the corresponding school number of student information, and have follow-up operation! Under normal circumstances, in order to achieve these features must require users to login correctly! There is a period of time to learn httpclient, and on the Internet to find about the Httpclent simulation login website Blog and demo learning, but many of the search is to say that "in obtaining a verification code (the educational system needs to enter a verification code, can log in), and access to cookies, Get these cookies and then add these cookies to the header during the subsequent operation ", with this idea, the following is achieved, but when I get the cookies, I get" null ".

<span style= "Font-family:microsoft yahei;font-size:12px;" >List<Cookie> cookies = Httpclient.getcookiestore (). GetCookies ();</span>
because HttpClient is also just used, I thought it was my code error, various debugs, no problem. Finally I use Firefox browser, Firefox login to see the request information, it is strange that unexpectedly found no cookies,

This is very strange, in the group of Httpclent asked, some said debugging tools, I think it is also, then try Httpwatch,firebug, Google Browser, there is a big brother introduced the use of Fiddler2. The result is still no cookies, a wry smile, but found Fiddler2 this tool good, analytical very detailed, interested can be downloaded to use.

Usually is not lying in the bi set up, after a few days, I really want to find the Square software company customer service, want to ask this piece is how to implement without cookies (later confirmed that I this practice is too funny, they say is business secrets, can not go out), a little despair, Try to hold the attitude in the online direct search simulation landing system, hey, unexpectedly search out a lot of entries, and finally find a reliable blog

Through this blog I finally know the secret of the landing

In the login interface, when the verification code comes out, the following response head has this attribute "location", in the back of the value has a string length of 24 random code, at this time, the Address bar URL also added this random code!

This random code can be used for subsequent operations!

Sure enough, through this method, I succeeded in logging in!


Educational administration system developed by using HttpClient simulation Landing Square Software Co., Ltd.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.