|
本帖最后由 ivy112 于 2015-8-3 14:06 编辑
Action.c(89): Error -26616: HTTP Status-Code=415 (Unsupported Media Type) for "http://url:xxx/ta_data/api/v1/click/increasement" [MsgId: MERR-26616]
这个报错怎么办,怎么解决
这个报错在网络上找了下解决方法,说是需要增加header,我增加header后都没办法回放成功。这个是用lr mobile recorder录制的,回放就报错这个。
此部分代码如下;
web_custom_request("increasement",
"URL=http://url:xxx/ta_data/api/v1/click/increasement",
"Method=PUT",
"Resource=0",
"RecContentType=application/json",
"Referer=",
"Snapshot=t12.inf",
"Mode=HTML",
"Body={\"objId\":\"494ffd5a-a996-48f7-a04f-878593062a2c\",\"incrNum\":1,\"objType\":\"KnowItem\"}",
EXTRARES,
"Url=../know/5270ec69-646b-440c-9151-e09dc7be1b1b/b41519cb-2acb-4560-a087-c700e47f984a/knowItem/494ffd5a-a996-48f7-a04f-878593062a2c/zip?orgId=null&startByte=0&", "Referer=", ENDITEM,
LAST);
|
|