how to use the REST API on unity?

I’ve tried using the script below, but the results are not what they should be.

why the result like that? and how to solve it?

thanks.

If you want you can try this RestClient for Unity

From the README of the plugin you can see examples, also using authentication with HTTP headers :slight_smile:

As you can see, you can use the UnityWebRequest system more easily with Promises, retry requests, debug the logs of the requests, etc with that plugin and works in all platforms.