登录
首页 » Windows开发 » socket代理

socket代理

于 2022-06-28 发布 文件大小:1.57 MB
0 227
下载积分: 2 下载次数: 1

代码说明:

下面是一个先前我用socket实现HTTP代理服务器的例子,代码很简单我就不一一解析了,要注意的是:当该代理服务器收到IE发来的请求时,要将IE请求行中的webserver的域名(或者IP)剥去,再将请求转发给webserver,如果不注意这点而是直接毫无处理的把IE请求信息直接发给webserver某些网站会显示不了网页,比如新浪,pfan,这是测试时发现的,其他就没什么可以说的了。实际上能否完成这个简单的HTTP proxy server可以看出对HTTP协议的熟悉程度,只要有一定的sock编程基础并熟悉了HTTP协议的工作流程,那我想就没什么障碍了。著此文章以供初学者参考,能从里面得到一点点的帮助那我已经心满意足了,高人指点改进意见邮箱联系,下面是源代码:

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • 不错的跟踪的程序,c语言写的,适合对gezong感兴趣的的初学者和编程人员。...
    不错的跟踪的程序,c语言写的,适合对gezong感兴趣的的初学者和编程人员。-Good procedures for tracking, c language, and suitable for gezong interest of beginners and programmers.
    2022-05-30 19:58:14下载
    积分:1
  • I spent the early c++ Realize static Huffman coding, debugging in vc2005 through...
    本人早期用c++实现的静态哈夫曼编码,在vc2005上调试通过!-I spent the early c++ Realize static Huffman coding, debugging in vc2005 through!
    2022-02-01 05:44:41下载
    积分:1
  • 设Internet上有N个站点,通常从一个站点送消息给其他N-1个站点,需依次送N-1次。 这样从一个站点布消息传遍N个站点时,可能要较长时间。...
    设Internet上有N个站点,通常从一个站点发送消息给其他N-1个站点,需依次发送N-1次。 这样从一个站点发布消息传遍N个站点时,可能要较长时间。 设从每一个站点都可以向其他N-1个站点同时发送消息. 当一个站点发布消息给若干个站点后, 设为k个, 已获得消息的这1+k个站点就可以同时发布消息给另外若干个站点, 设为t个, 此后就有 1+k+t 个站点可以同时发布消息,这种发布消息方法应该会缩短消息传遍N个站点的时间。 请您编一个程序, 编程求出从第一个站点开始发布消息传遍N个站点的最短时间。
    2022-01-27 09:55:19下载
    积分:1
  • materials management is general industrial, commercial enterprise production man...
    物资管理是一般工业、商业企业生产管理还击中重要的一环,需要对物资基本信息管理、物资调配信息等进行完整的监控。物资入库首先需要登记物资的基本信息,包括物资的种类、名称、型号、单位等;然后登记入库信息,包括物资基本信息、入库地点、入库人、经办人、数量等;出库物资需要登记出库信息,包括物资基本信息、出库地点、出库人、经办人、数量等;根据物资的入库、出库过程的综合,得到各种物资的余额信息,方便进行后续工作。因此物资管理信息系统需要记录物资流通的全过程。-materials management is general industrial, commercial enterprise production management responded important aspect of a need for basic supplies information management, materials information for the deployment of a complete monitoring. The amount of material goods must first register the basic information, including the type of materials, name, type, units, etc.; Arsenal then registration information, including basic information materials, storage location, storage, handling, and so on; Out-up materials needed for registration information, including material basic information out of the hangar location, out of the hangar, handling, and so on; based on the amount of material in and out of the process of integration, access to the material balance information and faci
    2022-08-21 06:04:09下载
    积分:1
  • 界面超漂亮的VC++ win32音乐播放器
    界面超漂亮的VC++ win32音乐播放器,学习win32的好例子。Music_Box源代码,VC++音乐播放器(win32源码版),该音乐播放器采用Win32SDK实现,具有音乐列表保存功能,支持皮肤透明度的设置。尤其是界面设计值得一赞哦,先看下截图,是不是很漂亮的蓝色风格?好像使用了控件!
    2022-08-20 01:44:37下载
    积分:1
  • some classic VC source code (5)
    一些经典的VC源代码(5)
    2022-03-22 05:57:35下载
    积分:1
  • Visual Basic for learning beginner
    Visual Basic for learning beginner
    2022-01-25 15:29:00下载
    积分:1
  • 21种加密54种压缩 算法模块,21种加密54种压缩 算法模块
    21种加密54种压缩 算法模块,21种加密54种压缩 算法模块-21 kinds of encryption algorithms 54 kinds of compression modules, 21 kinds of encryption module 54 kinds of compression algorithm
    2022-01-22 17:09:36下载
    积分:1
  • 字符串匹配程序,比如用 “你好*小张”在“你好,我的名字叫小张”中可以得出匹配,支持通配符查找。...
    字符串匹配程序,比如用 “你好*小张”在“你好,我的名字叫小张”中可以得出匹配,支持通配符查找。-string matching program, such as "Hello* kept" in the "Hello, My name is Xiao Zhang "may draw match, find support wildcards.
    2022-03-21 03:36:20下载
    积分:1
  • 聊天室演示程序的源代码程序,界面简单。与客户和美国
    myChat聊天室演示程序源代码,界面简洁。带客户端和服务端,全部程序源码在里面。学习网络编程特别好。-myChat chat room demo program source code, simple interface. With a client and server, all program source code inside. Learning Network program particularly well.
    2023-03-12 10:55:03下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载