kaoshibazhuceji

所属分类:Windows编程
开发工具:Visual C++
文件大小:813KB
下载次数:45
上传日期:2013-12-17 20:58:38
上 传 者alien0925
说明:  第一次接触VC++模拟HTTP协议的POST方式提交表单。POST提交部分的代码是在网上找的现成的函数,里面使用的是MFC的CHttpConnection类。随便找了个没有验证码的注册页面(考试吧网站的注册页面),提交表单,抓到数据包后分析,模拟提交,测试成功!于是便写出了这个批量注册的程序。为以后写更强大的模拟提交表单程序打基础。利用这种模拟提交和获取数据的方法,完全可以把一个别人写好的现成的B/S架构客户端网页写成一个C/S架构的客户端软件。十分强大!还可以进行各种代替人工操作的模拟网页操作。 本程序中用到了多线程,界面主线程和注册账号的工作者线程分开处理,但工作者线程只有一个,同时只能发起一个网络连接,注册速度较慢,待改进。
(First contact VC++ simulate HTTP POST protocol submission form. POST submission part of the code is readily available on the Internet to find a function, which uses the MFC CHttpConnection classes. Just looking for a no verification code registration page (bar exam registration page website), submit the form, caught after packet analysis, simulation submit, the test is successful! So they wrote the bulk registration process. Laying the foundation for the subsequent procedures to submit the form to write more powerful simulations. Using this simulation method to submit and retrieve data, can someone put a ready-written B/S architecture client pages written in a C/S structure of the client software. Very powerful! You can also perform a variety of operations simulation instead of doing web operations. The program uses a multi-threaded, the main thread and the worker thread interface registered account separately, but only one worker thread, but can only initiate a network connection, a r)

文件列表:
开发心得.txt (966, 2013-03-01)
Code\post\post.aps (106224, 2013-03-02)
Code\post\post.cpp (1452, 2013-03-01)
Code\post\post.h (430, 2013-03-01)
Code\post\post.rc (12562, 2013-03-02)
Code\post\post.vcxproj (5895, 2013-03-01)
Code\post\post.vcxproj.filters (1967, 2013-03-01)
Code\post\post.vcxproj.user (143, 2013-03-01)
Code\post\postDlg.cpp (13068, 2013-03-01)
Code\post\postDlg.h (2018, 2013-03-01)
Code\post\res\post.ico (67777, 2009-08-31)
Code\post\res\post.rc2 (664, 2013-03-01)
Code\post\resource.h (2454, 2013-03-01)
Code\post\stdafx.cpp (137, 2013-03-01)
Code\post\stdafx.h (932, 2013-03-01)
Code\post\targetver.h (234, 2013-03-01)
Code\post.sln (879, 2013-03-01)
Code\post.suo (15360, 2013-03-02)
Register.exe (1752064, 2013-03-02)
Code\post\res (0, 2013-03-02)
Code\post (0, 2013-03-02)
Code (0, 2013-03-02)

================================================================================ MICROSOFT 基础类库: post 项目概述 =============================================================================== 应用程序向导已为您创建了这个 post 应用程序。此应用程序不仅演示 Microsoft 基础类的基本使用方法,还可作为您编写应用程序的起点。 本文件概要介绍组成 post 应用程序的每个文件的内容。 post.vcxproj 这是使用应用程序向导生成的 VC++ 项目的主项目文件。 它包含生成该文件的 Visual C++ 的版本信息,以及有关使用应用程序向导选择的平台、配置和项目功能的信息。 post.vcxproj.filters 这是使用“应用程序向导”生成的 VC++ 项目筛选器文件。 它包含有关项目文件与筛选器之间的关联信息。在 IDE 中,通过这种关联,在特定节点下以分组形式显示具有相似扩展名的文件。例如,“.cpp”文件与“源文件”筛选器关联。 post.h 这是应用程序的主要头文件。它包括其他项目特定的头文件(包括 Resource.h),并声明 CpostApp 应用程序类。 post.cpp 这是包含应用程序类 CpostApp 的主要应用程序源文件。 post.rc 这是程序使用的所有 Microsoft Windows 资源的列表。它包括 RES 子目录中存储的图标、位图和光标。此文件可以直接在 Microsoft Visual C++ 中进行编辑。项目资源位于 2052 中。 res\post.ico 这是用作应用程序图标的图标文件。此图标包括在主要资源文件 post.rc 中。 res\post.rc2 此文件包含不在 Microsoft Visual C++ 中进行编辑的资源。您应该将不可由资源编辑器编辑的所有资源放在此文件中。 ///////////////////////////////////////////////////////////////////////////// 应用程序向导创建一个对话框类: postDlg.h,postDlg.cpp - 对话框 这些文件包含 CpostDlg 类。该类定义应用程序主对话框的行为。该对话框的模板位于 post.rc 中,该文件可以在 Microsoft Visual C++ 中进行编辑。 ///////////////////////////////////////////////////////////////////////////// 其他标准文件: StdAfx.h,StdAfx.cpp 这些文件用于生成名为 post.pch 的预编译头 (PCH) 文件和名为 StdAfx.obj 的预编译类型文件。 Resource.h 这是标准头文件,它定义新的资源 ID。 Microsoft Visual C++ 读取并更新此文件。 ///////////////////////////////////////////////////////////////////////////// 其他注释: 应用程序向导使用“TODO:”指示应添加或自定义的源代码部分。 如果应用程序在共享的 DLL 中使用 MFC,则需要重新发布这些 MFC DLL;如果应用程序所用的语言与操作系统的当前区域设置不同,则还需要重新发布对应的本地化资源 MFC100XXX.DLL。有关这两个主题的更多信息,请参见 MSDN 文档中有关 Redistributing Visual C++ applications (重新发布 Visual C++ 应用程序)的章节。 /////////////////////////////////////////////////////////////////////////////

近期下载者

相关文件


收藏者