|
录制一个exe的程序,客户端由Deiphi做的,中间件由JAVA,数据库是ORACLE。通信协议是HTTP。
测试的目的是为了验证客户端发送请求后,服务器端返回的结果对不对。
下面是录制的脚本其中一段:
Action()
{
web_custom_request("infoservlet",
"URL=http://211.100.77.42:13080/infoservlet/infoservlet",
"Method=POST",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t1.inf",
"Mode=HTTP",
"Body=0003",
LAST);
lr_think_time(6);
web_custom_request("infoservlet_2",
"URL=http://211.100.77.42:13080/infoservlet/infoservlet",
"Method=POST",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t2.inf",
"Mode=HTTP",
"Body=0501\xA1\xE22005zd\xA1\xE21\xA1\xE2WindowsXP\xA1\xE2000C29999D78",
LAST);
lr_think_time(6);
web_custom_request("infoservlet_3",
"URL=http://211.100.77.42:13080/infoservlet/infoservlet",
"Method=POST",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t3.inf",
"Mode=HTTP",
"Body=0901\xA1\xE2EE37A14076C0954C6535A969FF4DC24C\xA1\xE28\xA1\xE269325\xA1\xE286072",
LAST);
lr_think_time(6);
web_custom_request("infoservlet_33",
"URL=http://211.100.77.42:13080/infoservlet/infoservlet",
"Method=POST",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t47.inf",
"Mode=HTTP",
"Body=0007\xA1\xE2EE37A14076C0954C6535A969FF4DC24C\xA1\xE269325\xA1\xE286072\xA1\xE213918305022",
LAST);
lr_think_time(8);
web_custom_request("infoservlet_34",
"URL=http://211.100.77.42:13080/infoservlet/infoservlet",
"Method=POST",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t48.inf",
"Mode=HTTP",
"Body=0002\xA1\xE2EE37A14076C0954C6535A969FF4DC24C\xA1\xE269325\xA1\xE286072",
LAST);
return 0;
}
0007,0002这些数字开头的是客户端发起的报文。
录制完成后发现只有request的信息,查看树图,只有客户端的请求,服务端响应为空,也就是没有获取到。
请问如何才能从服务端获得响应的数据结果? |
|