|
本帖最后由 tianlang001 于 2013-9-22 17:28 编辑
现有一个delete提交方式的http请求,代码如下:
web_custom_request("deleteapp",
"URL=https://XXXXXX/api/private/users/self/deleteapp",
"Method=DELETE",
"Resource=0",
"RecContentType=application/json",
"Referer=https://XXXXXX/us/en/#papdetailsfrommyapps/1325.2/1.0.0/4/",
"Snapshot=t55.inf",
"Mode=HTML",
"Body=appId=1325.2&uri=https://YYYYYY:443/ams/apps/1325.2/1.0.0/4&isSchedulable=true&devices=-wihcjiwr2-mp_qf9xi68g",
EXTRARES,
LAST);
此段代码在我的脚本中执行时成功的,但是根本没有执行我想要的删除操作,API中此处的method只有POST和GET,而改为POST或GET时,提示无法找到URL了
Action.c(126): Warning -26000: Request body (length=155) is not empty for HTTP Method=GET, for URL is "https://XXXXXX/api/private/users/self/deleteapp" (Internal ID=123)[MsgId: MWAR-26000]
Action.c(126): Error -26627: HTTP Status-Code=404 (Not Found) for "https://XXXXXX/api/private/users/self/deleteapp" [MsgId: MERR-26627]
哪位大神看下怎样能解决这个问题,有没有哪个函数可以支持这个delete提交方式的?
先行谢过了。 |
|