All articles| All Pictures| All Softwares| All Video| Go home page| Write articles| Upload pictures

Reading number is top 10 articles
FreeBSD5.3下安装Apache+PHP+MySQL+Tomcat_[PHP教程]
细节决定成败,ASP.NET中的蝴蝶效应_[Asp.Net教程]
避免Access和SQL,Server的空值冲突_[SQL,Server教程]
.NET的视图状态ViewState与Request.Form及string和String的区别_[Asp.Net教程]
通过缓存数据库结果提高PHP性能_[PHP教程]
ajax+php无刷新二级联动下拉菜单
小结:PHP动态网页程序优化及高效提速问题_php资料_编程技术
C#教程:键盘消息的响应实例
C#中break语句的使用方法
PHP程序指定目录里的指定后缀名文件为超连接_php资料_编程技术
Reading number is top 10 pictures
中国文革时期的色情图片1
29 the belle stars after bath figure2
Fierce! China's special forces training the devil2
Look for from human art net, is good--3
More attractive than sora aoi3
A man's favorite things15
Summer is most suitable for young people to travel in China6
Desktop Wallpapers1
A man's favorite things6
奇趣的世界记录1
Download software ranking
apache-tomcat-6.0.33
C#程序员参考手册
WebService在.NET中的实战应用教学视频 → 第5集
天龙八部最新服务端
VC++6.0培训教程
Twenty piece of palm leaf
Take off clothes to survival
Visual C++界面编程技术
圣殿祭司的ASP.NET.2.0.开发详解-使用C#
Tram sex maniac 2 (H) rar bag5
aaa published in(发表于) 2013/12/6 10:16:30 Edit(编辑)
.net开发投票机的思路_.net资料_编程技术

.net开发投票机的思路_.net资料_编程技术-数科优化网

.net开发投票机的思路_.net资料_编程技术-数科优化网

最近看到偶多年来喜爱的jay的投票排名不甚理想了(肯定是有人使用投票机把jay挤下了)


所以我要动手写一个自动投票机,实现思路如下


1 查看投票源代码 查看给jay投票提交时将使用post还是get方式向web服务器提交什么数据,记下来


2 创建一个webclient类,设置http header 和post数据


3 经我在伟大的google搜索得知winnt操作系统有一个rasdial命令,可自动拨号,
拨号: rasdial "adsl连接名" "用户名" "密码"
断开: rasdial /disconnect


4 写一个类,包含两个方法,一个方法用来拨号,一个用来断开(可通过Process类调用命令台cmd.exe 再加入参数 /c rasdial "adsl连接名" "用户名" "密码"来拨号,然后cmd /c rasdial /disconnect断开)


ok 主程序应该如下


while
{
adslConnectClass.Start();
Sleep(3000);
WebClient提交Post;
Sleep(3000);
adslConnectClass.Stop();
Sleep(1000);
}






添加到del.icio.us 添加到新浪ViVi 添加到百度搜藏 添加到POCO网摘 添加到天天网摘365Key 添加到和讯网摘 添加到天极网摘 添加到黑米书签 添加到QQ书签 添加到雅虎收藏 添加到奇客发现 diigo it 添加到饭否 添加到飞豆订阅 添加到抓虾收藏 添加到鲜果订阅 digg it 貼到funP 添加到有道阅读 Live Favorites 添加到Newsvine 打印本页 用Email发送本页 在Facebook上分享


Disclaimer Privacy Policy About us Site Map

If you have any requirements, please contact webmaster。(如果有什么要求,请联系站长)
Copyright ©2011-
uuhomepage.com, Inc. All rights reserved.