node-red / cookbook.nodered.org

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

Feedback on 'Create an HTTP Endpoint' #69

Closed marcpouliot closed 4 years ago

marcpouliot commented 4 years ago

flow deployed "curl http://localhost:1880/hello" gives : Unauthorized .. I think this is due to basic authorization security. user ... user/password

(Is it possible to include in request ie curl statement ?) hum...

if done with a web browser (ie http://localhost:1880/hello) , the browser asks for credentials, then the node works and gets triggered. so the curl could be "curl http://localhost:1880/hello -u user" this will prompt for password. With correct password the correct response will be displayed. This, of course, is not ideal for automated process.