摘要
本文介绍了监听网页信息的程序设计方法和实现原理。利用WinPcap函数库捕获数据链路层的数据帧,由网络协议确定包含HTTP消息的TCP数据,最后根据HTTP报文格式和TCP连接原理截获网页信息。
This paper introduces the method of programming and principle of implementation. We capture the data frames of Data Link Layer by WinPcap, which included HTTP data. Then we pick up HTTP message according as the format of HTTP message and the theory of TCP connection from data frames. Finally we recombine HTTP data to build Web pages.
出处
《微计算机信息》
北大核心
2005年第3期203-204,共2页
Control & Automation