TA的每日心情 | 开心 2016-2-22 11:07 |
---|
签到天数: 2 天 连续签到: 1 天 [LV.1]测试小兵
|
reg()
{
lr_think_time(10);
/*
lr_convert_string_encoding("女",LR_ENC_SYSTEM_LOCALE,LR_ENC_UTF8,"str");
//char tmp;
strcpy("tmp",lr_eval_string("{str}"));
lr_log_message("str is %s ","tmp");
lr_save_string("tmp","sex");
*/
web_submit_data("RegisterAction",
"Action=http://localhost:8080/reservations/RegisterAction",
"Method=POST",
"RecContentType=text/html",
"Referer=http://localhost:8080/reservations/register.jsp",
"Snapshot=t3.inf",
"Mode=HTML",
ITEMDATA,
"Name=tName", "Value=test{username}", ENDITEM,
"Name=tPwd", "Value=123", ENDITEM,
"Name=tPwd2", "Value=123", ENDITEM,
"Name=tSex", "Value=lr_eval_string("{sex}"), ENDITEM,
"Name=select", "Value=?????", ENDITEM,
"Name=answer", "Value=3501", ENDITEM,
"Name=tOfficeAd", "Value=", ENDITEM,
"Name=tDepartment", "Value=10{username}", ENDITEM,
"Name=tTel", "Value=8663{username}", ENDITEM,
"Name=turename", "Value=", ENDITEM,
LAST);
return 0;
}
性别的参数如图:
回放之后出现错误,求前辈们帮忙瞅瞅,感激不尽! |
|