Retrieving data from a server via an https link


I would like to know how to retrieve data from a server and send it to Node-Red. I previously tested the URL on Postman, to see the data sent:

In order to get the correct values ​​I had to add headers.

I would like to retrieve the values ​​in this same form but on Node-Red

I have previously tested something, like this helper:

Doing it on Node-Red gave me this:

Code located in the function block.


Result obtained, I do not know how to interpret.

Thank you for your answers.

Well it looks more like a binary file - which given the accept-encoding says gzip deflate then maybe needs to be unzipped. Maybe it will allow a different encoding ?

Additionally, try "application/json" for the "Accept" header.

1 Like

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.