Use httpanalyzer to analyze the data packet and simulate the data packet for message sending

Source: Internet
Author: User

For an online chat window provided by slice, use httpanalyzer to analyze the packet sent by the window, and then simulate the packet to send the message.

The headers obtained through the software are as follows:

We can get the post address through the header:/chats/sendmessage. ashx page, and then cookie.

The data of post is as follows:

For example, the data format can be: chatroomname = homepage & timestamp = 2:19:45 & message = packet sending

The first parameter homepage indicates the speech page, timestamp: Timestamp, message: Sent content.

Finally, data packets are generated and sent using the software.

Set the package format, including cookie, postdata, and requesturl, to execute.

I wantedCodeSimulate login and then obtain the cookie, and then automatically send the above data packet format. you can log on successfully, but you will never get the desired cookie value when using the code to obtain the cookie ......

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.