Hi,
You could retrieve the list of headers from the `latestHttpResponse` object via association this way:
Then you can do whatever you wish with the list, e.g., do List operation to find header by key to get a specific header.
fyi this approach also works if you're using the new Consumed REST Service document.
Hope this helps.
I am not aware of any deprications of HttpRequest and HttpResponse. They are still there even in Mx11. See documentation here: https://docs.mendix.com/refguide/http-request-and-response-entities/
Regards,
Ronald
I don't like Postman. He hides some headers. For example, some APIs need the "content-type: application/json" header to work. The Postman sends this header by default and Mendix not. See all headers that postman sends and try to send in Mendix.
If not, it might be similar to a problem I had with Go (Golang). The postman request worked, but not in the Go code. I changed it to insecure request to make it work (https://www.reddit.com/r/golang/comments/jy7gqn/how_to_use_insecure_option_or_ssl_in_golang/).