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}}
Last modified: February 5, 2013

Author

Comments

Write a Reply or Comment

Your email address will not be published.

To create code blocks or other preformatted text, indent by four spaces:

    This will be displayed in a monospaced font. The first four 
    spaces will be stripped off, but all other whitespace
    will be preserved.
    
    Markdown is turned off in code blocks:
     [This is not a link](http://example.com)

To create not a block, but an inline code span, use backticks:

Here is some inline `code`.

For more help see http://daringfireball.net/projects/markdown/syntax

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