/* 对http协议进行分析: 测试环境: WIN 2K -SP4 Apache/1.3.29 (Win32) IE 6.0 Firefox/1.0 测试步骤: 1:先建立TCP连接。 2:发送如下请求: GET /index.html http/1.1 Accept:*?* Accept-Language: zh-cn User-Agent: Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0) Host:192.168.0.119 Connection: Keep-Alive 3:如后接受数据: 接受到的的结构如下: http协议回应 + 网页正文 + http的结尾结构 //----------------...
by leigaiting - 网络技术文档中心 - 2006-08-02 21:03:06 阅读(1907) 回复(0)
http头的组成: ============== http头字段包括4类: general-header ; request-header ; response-header ; entity-header . ******************************************************************************* General Header Fields ============================= general header是request、response都可用的, 但是不能用于entity. -- Cache-Control -- Connection ...
在linux用libpcaplinux下如何分析http报文的头信息? pcap_open_live的参数大小是否应该设置为大数据呢?如何用c程序得到http报文的各个头信息?
发现一个开源的http压力测试工具,C编写,我想了解一下它的原理,但是代码很复杂,有人愿意一起解读它么 Siege 一个开放源代码项目:http://www.joedog.org/siege/