web_submit_data()和web_submit_form()的区别
web_submit_form录制时会判断浏览器中是否有cache的内容,如果有web_submit_form函数中只保存和缓存不相同的数据;
例如:web_submit_form("login.action",
"Snapshot=t15.inf",
ITEMDATA,
"Name=user.email", "Value=yinyongjie01@163.com", ENDITEM,
"Name=user.password", "Value=110110", ENDITEM,
LAST);
web_submit_data()录制时无需判断浏览器是否有cache,把所有录制的数据都保存在web_submit_data()函数中;
例如:web_submit_data("login.action",
"Action=http://192.168.198.133:8080/dangdang_dk/user/login.action",
"Method=POST",
"RecContentType=text/html",
"Referer=http://192.168.198.133:8080/dangdang_dk/user/loginForm.jsp",
"Snapshot=t18.inf",
"Mode=HTML",
ITEMDATA,
"Name=struts.token.name", "Value=struts.token", ENDITEM,
"Name=struts.token", "Value=CH06XNE9MDW7Q0QOKVDYFWRDAZ3DEMTR", ENDITEM,
"Name=user.email", "Value=yinyongjie06@163.com", ENDITEM,
"Name=user.password", "Value=110110", ENDITEM,
LAST);
免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。