|
脚本:
Action()
{
web_custom_request("AddUser",
"URL=http://10.132.110.11:8080/test/user/create",
"Method=POST",
"TargetFrame=",
"Resource=0",
"Referer=",
"Body={"
"\"version\":1.00,"
"\"sysId\":1,"
"\"userId\":0,"
"\"signId\":\"12345\","
"\"data\":{ \"loginName\":\"test001\","
"\"email\":\"test001@163.com\","
"\"name\":\"test001\","
"\"password\":\"e10adc3949ba59abbe56e057f20f883e\","
"\"mobile\":\"13700000001\","
"\"phone\":\"02588888888\","
"\"status\":\"active\""
"}"
"}\"",
LAST);
return 0;
}
调测报错如下:
正在开始操作 Action。
Action.c(4): 错误 -26631: 对于“http://10.132.110.11:8080/test/user/create”,HTTP 状态代码=400 (Bad Request) [MsgId: MERR-26631]
Action.c(4): web_custom_request("AddUser") 最高严重级别为“ERROR”,1043 个正文字节,172 个标头字节 [MsgId: MMSG-26388]
正在结束操作 Action。
原正确的请求消息体是:
{
"version":1.00,
"sysId":1,
"userId":0,
"signId":"12345",
"data":{ "loginName":"test001",
"email":"test001@163.com",
"name":"test001",
"password":"e10adc3949ba59abbe56e057f20f883e",
"mobile":"13700000001",
"phone":"02588888888",
"status":"active"
}
} |
|