API integration test not working with curl.exe

We’re trying to use API integration and can’t get the following test going.
From the manual web page in the link below.
It says it’s for Mac and Unix command prompt. It’s not working under Windows environment. Does anyone know what would be the equivalent curl command in Windows/Dos?



curl --request POST --url http://my-website.com/lists/api/v2/sessions --header ‘Content-Type: application/json’ --data ‘{“login_name”: “admin”,“password”: “phplist”}’

The output should be similar to the following, with different expiry date, key, and id:


If instead you see a message in HTML stating ‘403 Forbidden’, then you should check your webserver’s permission configuration.

Non-superuser administrators cannot authenticate via the REST API.