The thinking of the. NET Development Polling Machine

Source: Internet
Author: User
Tags sleep

Recently, I've seen Jay's vote in the best of my years (someone must have used the voting machine to squeeze Jay down).

So I'm going to write an automatic voting machine to realize the following ideas

1 View the voting source code to see what data will be submitted to the Web server using post or get when submitting to Jay vote, note

2 Create a WebClient class that sets the HTTP header and post data

3 after I learned in the great Google search Winnt OS has a rasdial command that can be dialed automatically,
Dialing: rasdial "ADSL connection Name" "username" "Password"
Disconnect: Rasdial/disconnect

4 Write a class, contains two methods, a method used to dial, one to disconnect (can be called by the Process Class command console cmd.exe and then add parameters/C rasdial "ADSL Connection Name" "" "Username" "Password" to dial, then cmd/c rasdial/ Disconnect disconnected)

OK main program should be as follows

Adslconnectclass.start ();
Sleep (3000);
WebClient submit post;
Sleep (3000);
Adslconnectclass.stop ();
Sleep (1000);

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: 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.