|
我在用Web(Http/Html)协议录制脚本后,回放,发现web_submit_data总是运行失败,错误提示是HTTP Status-Code=500 (Internal Server Error)?.
函数如下:
lr_start_transaction("UserLogin");
lr_think_time(5);
web_submit_data("index.asp_3",
"Action=http://192.168.0.51/index.asp",
"Method=POST",
"RecContentType=text/html",
"Referer=http://192.168.0.51/index.asp",
"Snapshot=t3.inf",
"Mode=HTML",
ITEMDATA,
"Name=Block", "Value=", ENDITEM,
"Name=Password", "Value=1", ENDITEM,
"Name=UserName", "Value=yucg", ENDITEM,
EXTRARES,
"Url=/office/images/bg0.gif", "Referer=http://192.168.0.51/office/top.asp", ENDITEM,
"Url=/office/images/bg2.gif", "Referer=http://192.168.0.51/office/top.asp", ENDITEM,
LAST);
lr_end_transaction("UserLogin", LR_AUTO);
错误日志如下:
Action.c(18): t=4043ms: 195-byte response headers for "http://192.168.0.51/office/top0.asp" (RelFrameId=1.1)
Action.c(18): HTTP/1.1 500 Internal Server Error\r\n
Action.c(18): Date: Thu, 01 Sep 2005 09:48:17 GMT\r\n
Action.c(18): Server: Microsoft-IIS/6.0\r\n
Action.c(18): X-Powered-By: ASP.NET\r\n
Action.c(18): Content-Length: 288\r\n
Action.c(18): Content-Type: text/html\r\n
Action.c(18): Cache-control: private\r\n
Action.c(18): \r\n
Action.c(18): t=4067ms: 288-byte response body for "http://192.168.0.51/office/top0.asp" (RelFrameId=1.1)
Action.c(18): <font face="ËÎÌå" size=2>\n
Action.c(18): <p>Microsoft OLE DB Provider for ODBC Drivers</font> <font face="ËÎÌå" size=2>´íÎó '80040e
Action.c(18): 21'</font>\n
Action.c(18): <p>\n
Action.c(18): <font face="ËÎÌå" size=2>ODBC Çý¶¯³ÌÐò²»Ö§³ÖËùÐèµÄÊôÐÔ¡£</font>\n
Action.c(18): <p>\n
Action.c(18): <font face="ËÎÌå" size=2>/office/top0.asp</font><font face="ËÎÌå" size=2>£¬ÐÐ 47</font>
Action.c(18): Continuing after Error -26612: HTTP Status-Code=500 (Internal Server Error) for "http://192.168.0.51/office/top0.asp" [MsgId: MERR-26612]
Action.c(18): t=4091ms: Closing connection to 192.168.0.51 after receiving status code 500 [MsgId: MMSG-26000]
Action.c(18): t=4092ms: Closed connection to 192.168.0.51:80 after completing 4 requests [MsgId: MMSG-26000]
Action.c(18): t=4097ms: Request done "http://192.168.0.51/office/top0.asp" [MsgId: MMSG-26000]
Action.c(18): t=4099ms: Connecting to host 192.168.0.51:80 [MsgId: MMSG-26000]
Action.c(18): t=4110ms: 177-byte response headers for "http://192.168.0.51/office/left.asp" (RelFrameId=1.3)
请高手不防指教. |
|