|
想获得vuser的ip。录制了以下的脚本,运行脚本,在Execution log窗口中没有显示vuser的ip。请问这段获得vuser的脚本是否正确?在什么地方可以查看vuser的ip?
#include "web_api.h"
char ip;
vuser_end()
{
web_submit_data("eventservlet_4",
"Action=http://192.168.9.2:8080/common/eventservlet",
"Method=POST",
"RecContentType=text/html",
"Referer=http://192.168.9.2:8080/common/navigator.jsp",
"Snapshot=t5.inf",
"Mode=HTML",
ITEMDATA,
"Name=eventID", "Value=100114000129", ENDITEM,
"Name=fg", "Value=-1", ENDITEM,
LAST);
lr_think_time( 9 );
web_url("index.jsp",
"URL=http://192.168.9.2:8080/common/index.jsp?state=session",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t6.inf",
"Mode=HTML",
LAST);
return 0;
ip = tostring(lr_get_vuser_ip());
if (ip)
lr_output_message("The IP address is %s", ip);
else
lr_output_message("IP spoofing disabled"); |
|