|
需要HTTP长连接进行测试,录制脚本如下(Transfer-Encoding: chunked):
web_url("KeepAliveTest.aspx",
"URL=http://221.122.41.223/KeepAliveTest.aspx",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t1.inf",
"Mode=HTTP",
LAST);
服务器每秒返回
t=1543ms: 4-byte chunked response overhead for "http://221.122.41.223/KeepAliveTest.aspx" (RelFrameId=1)
3b\r\n (chunk内容的大小+\r\n)
t=1547ms: 59-byte chunked response body for "http://221.122.41.223/KeepAliveTest.aspx" (RelFrameId=1)
CurConnections: 8<BR>ServerTime:2008-11-17 14:10:35<BR><BR>(chunk内容)
由于采用的是基于http长连接的“服务器推”模式,所以每次脚本运行到上面的语句就停在此处,等待服务器发送信息,直到客户端停止本次请求。
现在我想对服务器每秒返回的信息进行判断,检验服务器返回是否正确,请问如何实现? |
|