1、脚本样例
发送HTTP请求(参数为JSON格式)
//获取web.custom_request函数发送的结果,ps: web.reg_save_param一定要放在custom_request上面
结果样例: //custId":"60066666666","custName
web.reg_save_param ("p_custId",
new String []{
"NOTFOUND=ERROR",
"LB=custId\":\"",
"RB=\",\"custName" ,
"LAST"} );
//发送的HTTP请求
web.custom_request("OpenAPI.do",
"Method=POST",
new String[]{
"URL=http://x.x.x.x:8080/front/login.app",
"Mode=HTTP",
"EncType=application/x-www-form-urlencoded; text/html; charset=utf-8", //编码类型
"Body={"functionCode":"","terminal":"APP"}",
//BODY的内容
"TargetFrame=",
"LAST"});