Retrieving data from a server via an https link

Hello,

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:
https://cookbook.nodered.org/http/set-request-header

Doing it on Node-Red gave me this:

Code located in the function block.


Recuperation_donne_https_GET

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