how to post a data to the server ?

Hi, i want to Post a request for getting the access token.
how to send the request to Server.

With curl, the request will be similar to:

-u ApI_Key:ApI_Secret
-d code=code_you_got_back
-d grant_type=authorization_code
-d redirect_uri=http://your-redirect-uri/

here i have Api _Secret,code,redirect url every thing.
but by using java script how to write the condition ?

what is this curl method ?

Thank you,

Best thing to do is look at this documentation for WWWForm

curl params via Unity WWWForm

-u WWWForm.headers should help with the basic auth.

-d this is just WWWForm data

Can I get your assistance with integrating Betable in a Unity Project? This is a HUGE deal for me and I need some help.