I'm trying to create a pseudo REST proxy and can't even get basic functionality to work.
I have Node Red running on a RHEL 8 server in Azure. I can connect to it fine on 1880. In order to check basic functionality I have an
http in node configured with
/ping going to a template node with only the contents
pong connected to a
http out node.
If I use Postman to perform a GET request I get "Error: socket hang up". If I use CURL ON the VM I get:
$ curl http://localhost:1880/ping curl: (52) Empty reply from server
It's probably something simple but I'm not sure what. Obviously the port is open or I couldn't access the node red interface.
What I'm trying to achieve is I have the CMMS Mainsaver which has a REST endpoint, but they want the payload to be Base64 encoded XML. The call will be coming from Tulip which does support XML REST calls, but not Base64 encoding.
I want Tulip to perform the request to Node Red in just XML, then I want to base64 encode the payload and then perform the request to Mainsaver on Tulip's behalf.
What am I missing?