感谢@mosss 的回答 搞明白了 示例代码:
msg.headers = {
'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/107.0.0.0',
'Content-Type': 'application/json',
'oAuthType': 'oAuthOpenId',
'X-Requested-With': 'XMLHttpRequest'
};
msg.cookies = {
'acw_tc': 'e7ff8a3acd29d55004f047e9f17fed6300810',
'SESSION': 'b0e5c8d7 - 278a- cbf8d696b798',
'JSESSIONID': 'CF0959792FDBE9BBA5F96A8E34C1F21E',
'SERVERID':'3376a55940f65693d6079cf3adb1c9bb'
}
msg.payload={"meterNo": "261622005872"};
return msg;
|