HTTP Request Node

Version
Download 2247
File Size 6.88 KB
File Count 1
Create Date February 14, 2021
Last Updated November 15, 2022
Download
or download free
[free_download_btn]

Description

Newsletter

Receive content update notifications and new demo scripts by signing up for the newsletter using the form below.

Loading

Buy Me A Coffee

pay-pal-buy-now

if you find this useful and would like to make a contribution, then you can do so by clicking here.

[changelog]

Categories & Tags

Similar Downloads

No related download found!
steve
Click to rate this post!
[Total: 1 Average: 5]

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. Required fields are marked *