|
IE6.0
选用WEB(HTTP/HTML)
用LR8.1进行录制时,record……(0 events)
用windows sockets,录制脚本如下:
#include "lrs.h"
Action()
{
lrs_create_socket("socket0", "TCP", "LocalHost=0", "RemoteHost=192.168.9.111:80", LrsLastArg);
lrs_send("socket0", "buf0", LrsLastArg);
lrs_receive("socket0", "buf1", LrsLastArg);
lrs_send("socket0", "buf2", LrsLastArg);
lrs_receive("socket0", "buf3", LrsLastArg);
lrs_send("socket0", "buf4", LrsLastArg);
lrs_receive("socket0", "buf5", LrsLastArg);
lrs_send("socket0", "buf6", LrsLastArg);
lrs_receive("socket0", "buf7", LrsLastArg);
lrs_receive("socket0", "buf9", LrsLastArg);
lrs_send("socket0", "buf8", LrsLastArg);
lrs_send("socket0", "buf10", LrsLastArg);
lrs_receive("socket0", "buf11", LrsLastArg);
lrs_send("socket0", "buf12", LrsLastArg);
lrs_create_socket("socket1", "TCP", "LocalHost=0", "RemoteHost=192.168.9.111:80", LrsLastArg);
lrs_send("socket1", "buf13", LrsLastArg);
lrs_receive("socket1", "buf14", LrsLastArg);
lrs_send("socket1", "buf15", LrsLastArg);
lrs_receive("socket1", "buf16", LrsLastArg);
lrs_send("socket1", "buf17", LrsLastArg);
lrs_receive("socket1", "buf18", LrsLastArg);
lrs_send("socket1", "buf19", LrsLastArg);
……………………………………………
选用其他协议也不行,急盼高手指教!
在另一台机器上用LR 8.0选用ODBC和web(http/html)才可以录制 |
|