1.错误代码27226
提示:
Action.c(36): Rendezvous 获取新闻列表
Action.c(38): Error -27226: The "action=newsAction&method=getNewsList&categoryId=1&allinfo=1&top=0×tamp=" argument (number 5) is unrecognized or misplaced [MsgId: MERR-27226]Action.c(38): web_custom_request("api1") highest severity level was "ERROR", 0 body bytes, 0 header bytes [MsgId: MMSG-26388]
源码:char str[1000];
lr_rendezvous("获取新闻列表");
strcpy(str,"action=newsAction&method=getNewsList&categoryId=1&allinfo=1&top=0×tamp=");
web_custom_request("api1",
"url=http://223.4.131.48:8080/newsmobiapi/api",
"Method=POST",
"Referer=",
// "Referer= http://10.240.248.103:7006/Comment/{IID}",
//"Mode=http",
str,
LAST);
return 0;
解决方法,strcpy(str,"action=newsAction&method=getNewsList&categoryId=1&allinfo=1&top=0×tamp=");改为strcpy(str,"body=action=newsAction&method=getNewsList&categoryId=1&allinfo=1&top=0×tamp=");在参数前面加个body=即可