web_submit_data()和web_submit_form()的區(qū)別
創(chuàng)新互聯(lián)主要從事成都網(wǎng)站建設(shè)、成都網(wǎng)站制作、網(wǎng)頁設(shè)計(jì)、企業(yè)做網(wǎng)站、公司建網(wǎng)站等業(yè)務(wù)。立足成都服務(wù)泰順,十余年網(wǎng)站建設(shè)經(jīng)驗(yàn),價(jià)格優(yōu)惠、服務(wù)專業(yè),歡迎來電咨詢建站服務(wù):13518219792
web_submit_form錄制時(shí)會(huì)判斷瀏覽器中是否有cache的內(nèi)容,如果有web_submit_form函數(shù)中只保存和緩存不相同的數(shù)據(jù);
例如: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()錄制時(shí)無需判斷瀏覽器是否有cache,把所有錄制的數(shù)據(jù)都保存在web_submit_data()函數(shù)中;
例如: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);