Hi @Colla
here is an example flow that should help you get started:
[{"id":"923bc595.5cc568","type":"http request","z":"d607ce33.4fa5a","name":"","method":"POST","ret":"txt","paytoqs":"ignore","url":"","tls":"","persist":false,"proxy":"","authType":"","x":570,"y":660,"wires":[["98fe22d2.28da2"]]},{"id":"b0a97530.5a0608","type":"inject","z":"d607ce33.4fa5a","name":"","props":[{"p":"payload"},{"p":"headers","v":"{\"content-type\":\"application/x-www-form-urlencoded\"}","vt":"json"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"{\"name\":\"pippo\",\"surname\":\"topolino\",\"street\":\"blablabla\"}","payloadType":"json","x":390,"y":660,"wires":[["923bc595.5cc568"]]},{"id":"98fe22d2.28da2","type":"debug","z":"d607ce33.4fa5a","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":770,"y":660,"wires":[]}]
Copy that JSON then import it into your Node-RED Editor using the "Import" menu option.
That will give you a flow that looks like this:
The Inject node sets two properties on the message:
msg.payload
is set to a Object containing the data you want to send in the request:
{"name":"pippo","surname":"topolino","street":"blablabla"}
msg.headers
is set to an Object containing the HTTP headers to use on the request:
{"content-type":"application/x-www-form-urlencoded"}
Next the HTTP Request node will do the actual request. I have configured it already to do a POST request - but you'll need to fill in the URL.
The result of the request will be passed to the final Debug node to display the result in the Debug Sidebar.
Once you've imported that to your workspace and set the URL property of the request node, hit the Deploy button, then trigger the Inject node by clicking its button.
I hope that's good enough to help you get started.