CURL in HTTPSocket

Hi,

Can somebody tell me how to write the following curl command for Xojo.Net.HTTPSocket please?

curl -u <client_id>:<client_secret> -d “grant_type=password&password=&username=” -H “Content-Type: application/x-www-form-urlencoded” -k https://test.com/oauth/v2/token?grant_type=client_credentials

Thank you

Maybe this helps: CURL from command line to Plugin