|
写的脚本如下:
Action()
{
web_custom_request("request1"
"URL = http://61.145.165.154:8080/uc/json",
"Method = POST",
"Resource=1",
"RecContentType = uc/json",
"EncType = uc/json",
"Mode = HTTP",
RAW_BODY_START,
// "{action:\"DeviceActive\",device:{deviceid:\"abc\", devmodel:\"abc\"}}",
//"body = deviceid = b90f632d06cf51a176c36be73cb725d516d7c77f"
"{action:\"DeviceActive\", device:{deviceid:\"b90f632d06cf51a176c36be73cb725d516d7c77f\",devmodel:\"1\"}}",
//"{device:{deviceid:\"b90f632d06cf51a176c36be73cb725d516d7c77f\",devmodel:\"1\"}}"
//55,
RAW_BODY_END,
LAST);
//return 0;
}
运行报如下错:
Action.c(3): Error -27226: The "Method = POST" argument (number 2) is unrecognized or misplaced [MsgId: MERR-27226]
Action.c(3): web_custom_request("request1URL = http://61.145.165.154:8080/uc/json") highest severity level was "ERROR", 0 body bytes, 0 header bytes [MsgId: MMSG-26388] |
|