Hello, i am running node red v.3.1.0 and Node JS version 20.9.0.
The response headers I see in chrome is :
HTTP/1.1 200 OK
Connection: close
Content-Type: text/xml
Access-Control-Allow-Origin: *
Access-Control-Allow-Methods "POST, GET, OPTIONS, DELETE, PUT"
Access-Control-Max-Age "1000"
Access-Control-Allow-Headers "x-requested-with, Content-Type, origin, authorization, accept, client-security-token"
Cache-Control: no-cache
Several of them headers are invalid (no : colon) - you should see if the device has a firmware update (or report it to the device maintainers)
That's why Chrome is only showing 4 parsed headers in the image.
This may be an upstream issue with got library or may be Node-RED needs to tell got to ignore invalid headers.
Unfortunately I am away from computers for the next week so can't help further at this point. Hopefully someone else on the forum can help further until I am able to look deeper into the issue.
If this is blocking you and you cannot wait, then you might want to try running cURL via the exec node or importing fetch in a function node.
That would seem to confirm what @Steve-Mcl said - the server is sending an invalid set of headers without : in. Curl error 8 is also "weird reply from server" so yes... need you to fix the server.
So the uppdate of FW helped. Now, the http server is returing good headers and both solution - using http request node and using curl is working OK. Thanks for help.