HTTP Request Node



  • Version
  • Download 1003
  • File Size 6.88 KB
  • File Count 1
  • Create Date February 14, 2021
  • Last Updated August 31, 2022
Click to rate this post!
[Total: 0 Average: 0]

5 comments

  1. Thanks, Steve, I had modelled this in postman initially and expected it to work the same in nodered. In postman, the json body is also sent in a get request. I set the body to specify parameters for the get (.ie like an optional filename). I have changed it to post now in node-red and it works.

  2. It seems the issue was that I had the method set to get. If the method is get the the httprequest node just ignores the payload.

  3. Do you have any examples of how to post json data?
    In a change node I set msg.payload = { “fileName” : “noderedrequest.jpg” }
    and
    msg.headers.content-type = application/json

    and
    msg.method = get

    But the json never appears in the packet when I inspect it with wireshark

    I have the request node set to
    – set by msg method

Leave a Reply

Your email address will not be published.