Where to run curl command for basic auth on sync_gateway while using windows system

In order to create basic authentication first we must create user at sync gateway by using curl command like-
curl -vX POST -H ‘Content-Type: application/json’ ^
-d '{“name”: “couchbase”, “password”: “mobile”}'
http://localhost:4985/sync_gateway/_user/

I am using windows system.I installed curl manually at C:/curl,
my sync gateway and config files are at C://Program Files(x86)/couchbase/sync_gateway.exe config.json…

Now my question is where to run the above curl command while using the windows?

I tried stopping sync gateway and running curl command there…But after restarting the sync gateway I still get 401 unauthorized error…

Guys Please help me out…I am stuck…I am doing something wrong…In order to work my application,the basic auth must work properly…Please help me…

Thank You…

You need to run the curl command while sync gateway is running. Also your URL is incorrect, if that is the one you are using. As stated in the documentation you need to make a request to /databasename/_user/name, not simply /databasename/_user. After that you can just use BASIC auth normally (i.e. http://user:password@host).

Problem solved…
My problem was with runnung curl command on windows…
If anyone needs help for running curl on windows check out this link-
https://support.zendesk.com/hc/en-us/articles/203691436-Installing-and-using-cURL