Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
I'm trying to make a very baisc GET request with a tRestClient and I'm getting a 200 status code returned but I have an encoding issue, I checked with the API documentation which details the following,
The API assumes UTF-8 encoding in API requests and always returns UTF-8 encoding in all responses.
So I added the following to the header with no luck and I also tried this in the advanced setting of Run.
Accept-Charset = UTF-8-Dfile.encoding=UTF-8
Here is a screenshot of the log.
And when I test this endpoint in Postmand it works fine.
Thanks for any help.
Hello, is it a GZIP compressed response ?
In some case tRESTClient is not able to uncompress the response as it directly read it as a string.
If you are using the request header "Accept-Encoding" = "gzip, deflate, br" try to remove it from the tRESTClient and see if you have now the response you want.
In order to know if it's the case or not you can send the headers of the request and the headers of the response.
Best regards
Jérémy