web_url():get接口
web_submit_data(); 一般录制时为post请求
web_custom_request():自定义http请求;post接口,处理特殊接口(json,xml)
======例子=====
==========
Action()
{
web_reg_find("Text=true", "SaveCount=para_count", LAST); //check 的函数
web_url("测试用户是否存在",
"URL=http://IP:8080/goods/UserServlet?method=validateAjaxname&username=test1",
"TargetFrame=",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t1.inf",
"Mode=HTML",
LAST);
web_reg_find("Text=true", "SaveCount=para_count", LAST); //check 的函数
web_submit_data("测试用户是否存在_post",
"Action=http://IP:8080/goods/UserServlet",
"Method=POST",
"RecContentType=text/html",
"Referer=",
"Snapshot=",
"Mode=HTML",
ITEMDATA,
"Name=method", "Value=validateAjaxname", ENDITEM,
"Name=username", "Value=test1", ENDITEM,
LAST);
return 0;
}