代理服务器测试程序的设计与实现
摘 要
本论文主要描述一个代理服务器测试程序的设计与实现,需要了解代理服务器的工作原理,在Visual C++ 6.0平台上开发一个基于对话框的MFC应用程序,此程序能够在短时间内验证一批具有特定格式的代理,并将他们按照速度快慢的顺序排列,使得用者能很方便的选择快速可用的代理去访问外网资源。
在程序的设计之中作者借鉴了成熟代理软件ProxyFox的一些设计理论。为了让习惯操作ProxyFox的用者能够很好的使用SuperProxy,设计了与ProxyFox相似的界面,当然也在一定程度上使界面做得更为简洁、美观。
关键词:代理;服务器;测试
The Design and Implementation of Proxy Server Testing Program
Abstract
This thesis describes a proxy server testing program’s design and realization. It is needed to master the theory of the Proxy server ,and realize it in Visual C + + 6.0 development platform based on an MFC dialog application procedure. This procedure can verify a number of specific format agents in a short time and order them according to the speed. Users can choose the quickest available agents to visit network resources.
In the design process the author drawes on the experience of mature software, ProxyFox, to accommodate the operation habits of ProxyFox. ProxyFox is designed with a similar interface, but it is more concise and beautiful.
Key words: proxy ; server; test
代理服务器英文全称是Proxy Server,其功能就是代理网络用户去取得网络信息。形象的说:它是网络信息的中转站。在一般情况下,我们使用网络浏览器直接去连接其他Internet站点取得网络信息时,须送出Request信号来得到回答,然后对方再把信息以bit方式传送回来。代理服务器是介于浏览器和Web服务器之间的一台服务器,有了它之后,浏览器不是直接到Web服务器去取回网页而是向代理服务器发出请求,Request信号会先送到代理服务器,由代理服务器来取回浏览器所需要的信息并传送给你的浏览器。而且,大部分代理服务器都具有缓冲的功能,就好象一个大的Cache,它有很大的存储空间,它不断将新取得数据储存到它本机的存储器上,如果浏览器所请求的数据在它本机的存储器上已经存在而且是最新的,那么它就不重新从Web服务器取数据,而直接将存储器上的数据传送给用户的浏览器,这样就能显著提高浏览速度和效率。