Analysis on HTTP request data

Source: Internet
Author: User

A while ago, a friend of mine gave me a call. Said is now in the network sales, asked if I can help him the entire automatic post machine. To tell the truth, I didn't get this piece before, I told him I tried it, can not be guaranteed. after all, is the process, self-study ability or drop. After a search, roughly grasp the automatic posting of the program roughly need to use which techniques and procedures. Here I use the httpclient framework to use the program to simulate the browser to send a request to the server. So, what requests do we need to send to the server? That's what this article is all about today. The main purpose of this article is not to teach you how to write automatic post machine. The automatic post program opens up to tell you where to apply the HTTP request data. in general, we want to post in a community, need to go through the operation? Login.. Browse Topics ...  Replies... Yes, normal posting is such a process, the program is the same, you have to follow this process. Below, I will use one DZ forum login As an example, to show the analysis process in a graphic way ....

First download an HTTP grab httpwatch. When installed, open ie browser → view → browser →httpwatch, the interface of the HttpWatch tool appears

If your computer is loaded with IE11, you can use its own developer tools, press the hair F12. Here I will use HttpWatch to do the demonstration.

Enter the address of the website in the Address bar first, enter to open HttpWatch record later. Then find the login page and sign in with your pre-registered account. At this time careful you can certainly notice that the HttpWatch tool will constantly jump out of a lot of request data. For us, most of this data is useless. We don't have to bother. We just have to focus on the login request. Look at the picture first.

In the case of a lot of data, we should learn to use keyword search, click Find, and then enter the user name that you just lost, or other valid keywords. Remember not to search the password directly, because most of the site's login page to encrypt the transmission of the password, so the search password you are not search out anything.

Or you can manually find the data that the method is requesting for the post. Click inside to see if the login parameters are included in the request body.

Sometimes, you may encounter some unfamiliar parameters in the form information you submit, and you can find the source of the value by looking up the keyword when you don't know where the value of the parameter is taken from. In many cases, the values of these strange parameters are sent to you by the server, if you want the form to submit successfully, it is necessary to get these values ....

Analysis on HTTP request data

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.