Location:
Search - CHttpConnection
Search list
Description: 通过CHttpSession发送Get、Post报文。并可自定义HTTP包头-CHttpSession send through the Get, Post Message. And custom HTTP header
Platform: |
Size: 24576 |
Author: |
Hits:
Description: 控制台应用程序,与 Internet 进行通信。该示例说明如何使用 CHttpFile 生成对 CHttpConnection 和 CInternetSession 对象的 HTTP 请求。-Console applications, and Internet communications. The example illustrates how to use CHttpConnection and CHttpFile generated CInternetSession of the HTTP request object.
Platform: |
Size: 9216 |
Author: aaaa |
Hits:
Description: QQ农场外挂 VC2008源代码 农场外挂源代码 农场源代码
-//验证QQ密码
bool WebQQFunction::LoginQQ(CString qqname, CString qqmm, CString qqxym, CString outstr)
{
CHttpConnection*pHttpConnect = Session.GetHttpConnection("ptlogin2.qq.com")
CString szFormData
CHttpFile* pFile
qqxym.MakeUpper()
szFormData.Format("u= s&p= s&verifycode= s",qqname,GetQQmd5pass(qqmm,qqxym),qqxym)
szFormData+="&aid=15000102&u1=http 3A 2F 2Fxiaoyou.qq.com 2Findex.php 3Fmod 3Dlogin&fp=&h=1&ptredirect=1&ptlang=0&from_ui=1&dumy=1"
if( pHttpConnect )
{
pFile = pHttpConnect->OpenRequest( CHttpConnection::HTTP_VERB_POST,"/login")
}
if (pFile)
{
// pFile->AddRequestHeaders("POST /login HTTP/1.1\n")
pFile->AddRequestHeaders("Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/x-shockwave-flash, application/msword,*/*\n")
pFile->AddRequestHeaders("Referer: http://ui.ptlogin2.qq.com/cgi-bin/login?appid=15000102\n")
Platform: |
Size: 268288 |
Author: 罗俊杰 |
Hits:
Description: 第一次接触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
Platform: |
Size: 832512 |
Author: 贾乐乐 |
Hits:
Description: VC++程序,用于http下载文件,利用CInternetSession、CHttpConnection、HTTP_VERB_GET获取文件并下载。简单实现demo。-VC++ procedures for http download files, the use of CInternetSession, CHttpConnection, HTTP_VERB_GET access to documents and download. Simple implementation demo.
Platform: |
Size: 32768 |
Author: yjhui |
Hits:
Description: 基于CHttpConnection实现的浏览器,可重定向的URL,自定义浏览器参数(CHttpConnection based browser, redirect URL, custom browser parameters)
Platform: |
Size: 33121280 |
Author: vision2sky
|
Hits: