Hello everyone,
I work in the world of building automation, I started with Note-Red a few days ago. in my Flow I have foreseen a first part in modbus ip client, then it asks the server (home automation system) for the status of the buttons of the command keyboards.
The other part that I cannot get to work should send http commands to another home automation system for the activation of the lighting scenarios.
Using the http request form with basic, user and pwd protection I get an authentication error.
For clarity I make an example of command:
http://192.168.1.201/SetDyNet.cgi?a=151&p=1
During my tests I also used the Postman program and with that it works perfectly.
To understand where the error occurs, I also entered the "http logger" node in the flow and I receive the following response:
13/9/2020, 18: 42: 52node: http debug
success: msg: Object
object
request: object
port: 80
path: null
host: "192.168.1.201"
href: "http://192.168.1.201/SetDyNet.cgi?a=151&p=1"
method: "GET"
headers: object
host: "192.168.1.201"
authorization: "Basic YWRtaW46YWRtaW4 ="
connection: "keep-alive"
body: ""
response: object
statusCode: 200
headers: object
trailers: object
httpVersion: "1.1"
url: ""
method: null
body: " 401 Unauthorized - User authentication is required. "
topic: "success"
_msgid: "e7497af9.d94448"
Thanks in advance