Let me get more specific of what I want to achieve.
I have a Setopbox (STB) device that I want to communicate with via node-red.
On Github I have found a simple webinterface of this STB.
I have cloned this (and installed the npm requirements) on the same local machine (RPi) as Node-Red.
I can access the web interface at: http://192.168.1.51:8080
With an HttpRequest Node I managed to Toggle On/Off, but getting the Status (On, Off, Paused) is not possible with this Node.
But when I check the "index.js" file, I see that communication takes place via an external mqtt server.
The difficulty is that Username, Password and ClientID for the mqtt server are not static.
They are generated (each session) from a combination of different "const" values.