文件名称:TestHttp
- 所属分类:
- 浏览器
- 资源属性:
- [Windows] [Visual C] [源码]
- 上传时间:
- 2012-11-26
- 文件大小:
- 55kb
- 下载次数:
- 0次
- 提 供 者:
- oumin*****
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
这是直接使用SOCKET实现HTTP下载功能的VC源码,通过格式化请求头就很容易实现断点续传和检查更新等等功能.实现了以下功能:
1.连接主机
2.格式化请求头
3.设置接收,发送超时
4.接收并分析回应头
该程序很清晰地实现了从HTTP下载的方法和原理,为个人实现断点续传多线程下载,提供了很好的平台。原文请参阅http://www.openpip.net/bbs/read.php?tid=777,现本人在其基础上增加了暂停/恢复,断点继传功能,正在加入多线程功能,有这方面兴趣的朋友可以一起开发一起交流:oml@qq.com-This is the direct use of HTTP download function SOCKET realize the VC source, through the request header format can easily realize HTTP and check for updates and so on. Realize the following functions: 1. To connect the host 2. Formatted request for the first 3 . set to receive, send overtime 4. to receive and analyze the response to head the program, it was clearly realize downloaded from the HTTP methods and principles, for individuals to achieve multi-threaded HTTP download, provided a good platform. Please refer to the original http://www.openpip.net/bbs/read.php?tid=777, now I am in its basis an increase of pause/resume, following the mass function of a breakpoint, is adding multi-threading capabilities, it has Friend may be interested in aspects of development together with the exchange: oml@qq.com
1.连接主机
2.格式化请求头
3.设置接收,发送超时
4.接收并分析回应头
该程序很清晰地实现了从HTTP下载的方法和原理,为个人实现断点续传多线程下载,提供了很好的平台。原文请参阅http://www.openpip.net/bbs/read.php?tid=777,现本人在其基础上增加了暂停/恢复,断点继传功能,正在加入多线程功能,有这方面兴趣的朋友可以一起开发一起交流:oml@qq.com-This is the direct use of HTTP download function SOCKET realize the VC source, through the request header format can easily realize HTTP and check for updates and so on. Realize the following functions: 1. To connect the host 2. Formatted request for the first 3 . set to receive, send overtime 4. to receive and analyze the response to head the program, it was clearly realize downloaded from the HTTP methods and principles, for individuals to achieve multi-threaded HTTP download, provided a good platform. Please refer to the original http://www.openpip.net/bbs/read.php?tid=777, now I am in its basis an increase of pause/resume, following the mass function of a breakpoint, is adding multi-threading capabilities, it has Friend may be interested in aspects of development together with the exchange: oml@qq.com
(系统自动生成,下载前可以参看下载内容)
下载文件列表
TestHttp
........\DownLoadHttp.cpp
........\DownLoadHttp.h
........\Http.lib
........\HttpSocket.cpp
........\HttpSocket.h
........\ReadMe.txt
........\res
........\...\TestHttp.rc2
........\resource.h
........\StdAfx.cpp
........\StdAfx.h
........\TestHttp.clw
........\TestHttp.cpp
........\TestHttp.dsp
........\TestHttp.dsw
........\TestHttp.h
........\TestHttp.ncb
........\TestHttp.opt
........\TestHttp.plg
........\TestHttp.rc
........\TestHttpDlg.cpp
........\TestHttpDlg.h
........\TextProgressCtrl.cpp
........\TextProgressCtrl.h
........\DownLoadHttp.cpp
........\DownLoadHttp.h
........\Http.lib
........\HttpSocket.cpp
........\HttpSocket.h
........\ReadMe.txt
........\res
........\...\TestHttp.rc2
........\resource.h
........\StdAfx.cpp
........\StdAfx.h
........\TestHttp.clw
........\TestHttp.cpp
........\TestHttp.dsp
........\TestHttp.dsw
........\TestHttp.h
........\TestHttp.ncb
........\TestHttp.opt
........\TestHttp.plg
........\TestHttp.rc
........\TestHttpDlg.cpp
........\TestHttpDlg.h
........\TextProgressCtrl.cpp
........\TextProgressCtrl.h