HTTP node help (beginner)

Hello, I am new to http nodes and need help from more experienced users.

With inject I send data (POST) to the URL to the RequestBin.com endpoint.
These data are properly displayed there (picture attached).

How to get this data in Node-RED?
Thx!

try the examples in the cookbook or the built in examples inside node-red

cookbook

https://cookbook.nodered.org/#http-requests

Built in examples

Hello and thanks for the reply @Steve_Mcl!

I tried this example before asking the question, but no luck.

I made changes to the "http in" and "http request" nodes (changed URL).

An image with the debug response is attached, as is the flow.

Web browser information OK.

[{"id":"8f528d7e22867b51","type":"group","z":"15904f1436604ab2","name":"my endpoint (https://en0pnjpo24h70g.x.pipedream.net/hello-raw)","style":{"stroke":"#ff0000","fill":"#ffefbf","label":true,"color":"#000000"},"nodes":["3ce0c09d9e543325","c4d19ae32053b33a","dbeec81a6782acce","ba9f40ecc666149f","2ce3da498b23315b","22e05bd0802a6632","b4e617bf57076714","b1dba1c0dd1a408e","f3bf891c742fd017"],"x":154,"y":4339,"w":792,"h":222},{"id":"3ce0c09d9e543325","type":"http in","z":"15904f1436604ab2","g":"8f528d7e22867b51","name":"","url":"https://en0pnjpo24h70g.x.pipedream.net/hello-raw","method":"post","upload":false,"swaggerDoc":"","x":390,"y":4420,"wires":[["22e05bd0802a6632","f3bf891c742fd017"]]},{"id":"c4d19ae32053b33a","type":"http response","z":"15904f1436604ab2","g":"8f528d7e22867b51","name":"","statusCode":"","headers":{},"x":870,"y":4420,"wires":[]},{"id":"dbeec81a6782acce","type":"comment","z":"15904f1436604ab2","g":"8f528d7e22867b51","name":"Post data to a flow","info":"The `HTTP In` node can listen for POST requests.  It returns the posted data as `msg.payload`.\n\nSee Node-RED cookbook items(\n[post raw data(https://cookbook.nodered.org/http/post-raw-data-to-a-flow), [post form data](https://cookbook.nodered.org/http/post-form-data-to-a-flow), [post JSON data](https://cookbook.nodered.org/http/post-json-data-to-a-flow)\n) for details.","x":270,"y":4380,"wires":[]},{"id":"ba9f40ecc666149f","type":"http request","z":"15904f1436604ab2","g":"8f528d7e22867b51","name":"","method":"POST","ret":"txt","paytoqs":"ignore","url":"https://en0pnjpo24h70g.x.pipedream.net/hello-raw","tls":"","persist":false,"proxy":"","insecureHTTPParser":false,"authType":"","senderr":false,"headers":[],"x":430,"y":4520,"wires":[["2ce3da498b23315b"]]},{"id":"2ce3da498b23315b","type":"debug","z":"15904f1436604ab2","g":"8f528d7e22867b51","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":590,"y":4520,"wires":[]},{"id":"22e05bd0802a6632","type":"template","z":"15904f1436604ab2","g":"8f528d7e22867b51","name":"page","field":"payload","fieldType":"msg","format":"html","syntax":"mustache","template":"<html>\n    <head></head>\n    <body>\n        <h1>Hello {{payload}}</h1>\n    </body>\n</html>","output":"str","x":710,"y":4420,"wires":[["c4d19ae32053b33a"]]},{"id":"b4e617bf57076714","type":"inject","z":"15904f1436604ab2","g":"8f528d7e22867b51","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"Nick","payloadType":"str","x":270,"y":4520,"wires":[["ba9f40ecc666149f"]]},{"id":"b1dba1c0dd1a408e","type":"comment","z":"15904f1436604ab2","g":"8f528d7e22867b51","name":"Send HTTP POST request:https://en0pnjpo24h70g.x.pipedream.net/hello-raw","info":"","x":470,"y":4480,"wires":[]},{"id":"f3bf891c742fd017","type":"debug","z":"15904f1436604ab2","g":"8f528d7e22867b51","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":710,"y":4380,"wires":[]},{"id":"b2e169590b3b5cb0","type":"group","z":"15904f1436604ab2","name":"from example (local)","style":{"stroke":"#0070c0","fill":"#c8e7a7","label":true,"color":"#000000"},"nodes":["f0faf778673f3466","e371caf77af8e636","80764fe30bb7af60","9e3c917120360e4d","dbae30acdea76549","c2918ec53144541e","2907c829cba86ea7","6d9dcb5c36d43db9","ad202ed68a5a8f0f"],"x":154,"y":4099,"w":552,"h":222},{"id":"f0faf778673f3466","type":"http in","z":"15904f1436604ab2","g":"b2e169590b3b5cb0","name":"","url":"/hello-raw","method":"post","upload":false,"swaggerDoc":"","x":260,"y":4180,"wires":[["c2918ec53144541e","ad202ed68a5a8f0f"]]},{"id":"e371caf77af8e636","type":"http response","z":"15904f1436604ab2","g":"b2e169590b3b5cb0","name":"","statusCode":"","headers":{},"x":610,"y":4180,"wires":[]},{"id":"80764fe30bb7af60","type":"comment","z":"15904f1436604ab2","g":"b2e169590b3b5cb0","name":"Post data to a flow","info":"The `HTTP In` node can listen for POST requests.  It returns the posted data as `msg.payload`.\n\nSee Node-RED cookbook items(\n[post raw data(https://cookbook.nodered.org/http/post-raw-data-to-a-flow), [post form data](https://cookbook.nodered.org/http/post-form-data-to-a-flow), [post JSON data](https://cookbook.nodered.org/http/post-json-data-to-a-flow)\n) for details.","x":270,"y":4140,"wires":[]},{"id":"9e3c917120360e4d","type":"http request","z":"15904f1436604ab2","g":"b2e169590b3b5cb0","name":"","method":"POST","ret":"txt","paytoqs":"ignore","url":"http://localhost:1880/hello-raw","tls":"","persist":false,"proxy":"","authType":"","credentials":{},"x":430,"y":4280,"wires":[["dbae30acdea76549"]]},{"id":"dbae30acdea76549","type":"debug","z":"15904f1436604ab2","g":"b2e169590b3b5cb0","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":610,"y":4280,"wires":[]},{"id":"c2918ec53144541e","type":"template","z":"15904f1436604ab2","g":"b2e169590b3b5cb0","name":"page","field":"payload","fieldType":"msg","format":"html","syntax":"mustache","template":"<html>\n    <head></head>\n    <body>\n        <h1>Hello {{payload}}</h1>\n    </body>\n</html>","output":"str","x":450,"y":4180,"wires":[["e371caf77af8e636"]]},{"id":"2907c829cba86ea7","type":"inject","z":"15904f1436604ab2","g":"b2e169590b3b5cb0","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"Nick","payloadType":"str","x":270,"y":4280,"wires":[["9e3c917120360e4d"]]},{"id":"6d9dcb5c36d43db9","type":"comment","z":"15904f1436604ab2","g":"b2e169590b3b5cb0","name":"Send HTTP POST request: http://localhost:1880/hello-raw","info":"","x":410,"y":4240,"wires":[]},{"id":"ad202ed68a5a8f0f","type":"debug","z":"15904f1436604ab2","g":"b2e169590b3b5cb0","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":450,"y":4140,"wires":[]}]

ok, so I have made some assumptions - 1 being this instance of node-red is NOT running on the same server as https://en0pnjpo24h70g.x.pipedream.net/hello-raw?

The HTTP-In creates a callable endpoint on the NODE-RED server - it does not provide a way to intercept calls to another server or another application on a different port.

Does that make sense?

Makes sense.
So it is normal that it does not work for the given example.
Thank you for the explanation!

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.