详细描述:
对rest/data/featureResults发送post请求时返回错误码400,请求体的内容是复制网页版生成的

代码:
$.ajax({
url: 'http://localhost:8090/iserver/services/data-ChiShuiHeGu/rest/data/featureResults?returnContent=true',
data: {
"getFeatureMode": "SQL",
"datasetNames": ["jiankong:FuXingCamera"],
"maxFeatures": 100,
"queryParameter": {
"sortClause":null,
"ids":null,
"name":null,
"attributeFilter":"SMUSERID = 0",
"groupClause":null,
"linkItems":null,
"joinItems":null,
"fields":null}
},
success: function(result){
console.log(result);
},
error: function(XMLHttpResponse, textStatus, errorThrown){
console.log("1 异步调用返回失败,XMLHttpResponse.readyState:"+XMLHttpResponse.readyState);
console.log("2 异步调用返回失败,XMLHttpResponse.status:"+XMLHttpResponse.status);
console.log("3 异步调用返回失败,textStatus:"+textStatus);
console.log("4 异步调用返回失败,errorThrown:"+errorThrown);
},
type: "POST",
async: false
});
console.log报错截图
