node-red / cookbook.nodered.org

Node-RED Cookbook
http://cookbook.nodered.org
Apache License 2.0
84 stars 34 forks source link

Feedback on 'Set the URL of a request using a template' #8

Open Paul-Reed opened 7 years ago

Paul-Reed commented 7 years ago

' The Change node changes this to msg.post'

Does the change node serve any purpose in this example?
The http request node info reads;

'..if the url is set to example.com/{{{topic}}}, it will have the value of msg.topic automatically inserted.'

i.e. msg.topic not msg.post

Paul-Reed commented 7 years ago

Should read 'not specifically msg.post

mblackstock commented 7 years ago

The example demonstrates how to set the URL of a request using a template. The change node moves the 2 in message.payload from the inject node to message.post. I suppose I could have put the 2 in the topic field using the inject node, and skipped the change node. Would this be clearer?