Action()
{
int HttpRetCode; //定义一个变量,用于接收HTTP返回的状态码
web_submit_data("web_submit_data",
"Action=http://192.168.10.121:8081/api/GetRoomInfo?", //接口地址
"Method=POST",
"TargetFrame=",
"RecContentType=application/x-www-form-urlencoded",
"Referer=http://{url}/login_wj;jsessionid={jsessionid}",
ITEMDATA,
"Name=ShopInfo", "Value=学院路_3",ENDITEM,
"Name=RequestTime","Value=2015-07-13",ENDITEM, //插入参数值
"Name=RoomID", "Value=4",ENDITEM,
LAST);
HttpRetCode=web_get_int_property(HTTP_INFO_RETURN_CODE); //获取返回的状态码
if(HttpRetCode==200) //如果状态码返回200,则是成功的
{ lr_output_message("成功!");
}
else
{ lr_output_message("失败!");
}
return 0;
}