node red http 请求例子
![](https://img2024.cnblogs.com/blog/14033/202403/14033-20240315111550265-1900916585.jpg)
函数2
var tk = msg.payload.access_token msg.headers = {}; msg.headers['Authorization'] = "ABC"+tk; msg.payload = {} return msg;
函数1
msg.headers = {}; msg.headers['Content-Type'] = 'application/x-www-form-urlencoded'; msg.payload = { client_id: "111", client_secret: "222", grant_type: "333" } return msg;