|
6#
楼主 |
发表于 2007-4-25 16:00:54
|
只看该作者
选用winsocket协议。录制的脚本如下:
我用430登陆,密码 1
现在的问题是:项参数化用户名,但找不到!
球各位高手帮帮忙!
*********************************************************************
* Created by Mercury Interactive Windows Sockets Recorder
*
* Created on: Wed Apr 25 15:55:13
*********************************************************************/
#include "lrs.h"
vuser_init()
{
lrs_startup(257);
lrs_create_socket("socket0", "TCP", "RemoteHost=218.249.15.77:3333", LrsLastArg);
lrs_close_socket("socket0");
lrs_create_socket("socket1", "TCP", "RemoteHost=218.249.15.77:13", LrsLastArg);
lrs_receive("socket1", "buf0", LrsLastArg);
lrs_close_socket("socket1");
lrs_create_socket("socket2", "TCP", "RemoteHost=218.249.15.77:2500", LrsLastArg);
lr_think_time(7);
lrs_create_socket("socket3", "TCP", "RemoteHost=218.249.15.77:2500", LrsLastArg);
lrs_send("socket3", "buf1", "Flags=MSG_DONTROUTE", LrsLastArg);
lrs_receive("socket3", "buf2", LrsLastArg);
lrs_close_socket("socket3");
return 0;
} |
|