C # asp.net mvc developed a square educational assistant (2)

The previous article showed the actual operation of the project

Now let's analyze how the project is completed:

The first step: log in your educational affairs, this is the homepage of the academic affairs we learned http://jw.svtcc.edu.cn/Default2.aspx , after entering, open the Firefox browser for login analysis

 

Press f12 in Firefox browser to open the developer mode, at this time we can clearly see that the network request below is empty (if there is a network request, please clear)

Wait for us to enter the account number, password, verification code, at this time we log in, and then log in successfully to enter the home page

At this time we can find that there are a post request at the top of which the parameters are:

 

<span style="color:#cc0000">__VIEWSTATE,TextBox1,TextBox2,TextBox3,RadioButtonList1,Button1</span>
Among them, we can guess that TextBox1 is actually the student number, TextBox2 is the password, TextBox3 is the verification code, RadioButtonList1 is the above radio box, the value is the student, and Button1  is empty. This can ignore the remaining __VIEWSTATE , we do n’t know what it is , Back to the landing page again
 

 

 Because bloggers are busy with company projects, they may not have time to post the following code.

 Those who are interested can go to: Click to open the link , download the source code (the source code is not completed, only supports querying timetables and results)

 At the same time, welcome to add me qq: 864015769 to discuss c # technical issues

 Please note when using the source code: Since the address of the cache verification code is written as a static link, please note the modification

 

 

 

 

Published 29 original articles · Like 11 · Visits 10,000+

Guess you like

Origin blog.csdn.net/u010840685/article/details/60882072