|
submit_login()
{
lr_rendezvous("login_rendezvous");
lr_start_transaction("confirm page");
web_submit_data("login_2",
"Action=http://xxxxxx.com:8080/login",
"Method=POST",
"RecContentType=text/html",
"Referer=http://xxxxxx.com:8080/login",
"Snapshot=t3.inf",
"Mode=HTML",
ITEMDATA,
"Name=loginName", "Value={username}", ENDITEM,
"Name=password", "Value=123456", ENDITEM,
"Name=targetUrl", "Value=", ENDITEM,
"Name=_sourcePage", "Value=29y9_TZpNVWWF0l61Y_uXIbonN04ni20Qvm5m_WH_RBpnRcfanBWaQ==", ENDITEM,
"Name=__fp", "Value=7xzpt4lp8RM=", ENDITEM,
"Name=login.x", "Value=21", ENDITEM,
"Name=login.y", "Value=23", ENDITEM,
LAST);
lr_end_transaction("confirm page", LR_AUTO);
lr_log_message("用户名:%s",lr_eval_string("{username}"));
return 0;
}
这样对么?我的username只有一个登录名aaa,我是写成username还是直接写成loginname=aaa?谢谢。我怎么早没想到把脚本也给你看看啊哎 |
|