curl on windows with https

The easiest way to get curl on windows with HTTPS is to simply download and install the git package then add

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:

curl https://www.cloudflare.com/api_json.html -d "a=fpurge_ts" -d "tkn=" -d "email=" -d "z=domain" -d "v=1"

{"response":{"fpurge_ts":1359831767},"result":"success","msg":null,"attributes":{"cooldown":20}}

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.