The easiest way to get curl on windows with HTTPS is to simply download and install the git package then add
|
1 |
c:\Program Files (x86)\Git\bin |
as an environment variable to allow you to run curl from anywhere.
Don’t forget when running curl commands in a DOS prompt to use double quotes.
Example:
|
1 2 3 |
curl https://www.cloudflare.com/api_json.html -d "a=fpurge_ts" -d "tkn=<apikey>" -d "email=<username>" -d "z=domain" -d "v=1" {"response":{"fpurge_ts":1359831767},"result":"success","msg":null,"attributes":{"cooldown":20}}</username></apikey> |