-
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);
原创文章,作者:carmelaweatherly,如若转载,请注明出处:https://blog.ytso.com/191638.html