|
本帖最后由 Major 于 2021-12-25 20:55 编辑
GM_xmlhttpRequest报400错误 POST请求 ,有知道什么原因吗, 浏览器抓包的 header 截图如下
///////////////////////////////////////////////
GM_xmlhttpRequest({
method: "post",
url: 'https://yzzs.kdy100.com:1991/mossapi/mossp.expressj/queryExpressListV4',
Headers:{
"Content-Type": "application/json;charset=UTF-8"
},
data:{
"callee": "",
"companyId": "",
"currentPage": 1,
"endTime": "2021-12-26 00:00:00",
"mailNum": "",
"notifyStatus": "",
"packNum": "",
"packStatus": "0",
"pageSize": 20,
"queryModel": "QueryInTime",
"sortBy": 0,
"sortOrder": "desc",
"startTime": "2021-11-26 00:00:00",
"stockDay": "",
"userId": "P07286628cf-0e10-4441-9867-ba9cbcf54bc9",
},
onload: function(res){
if(res.status === 200){
console.log('成功')
var obj = res.data;
console.log(obj)
}else{
console.log('失败')
console.log(res)
}
},
onerror : function(err){
console.log('error')
console.log(err)
}
});
|
|