If you got git, you got CURL on windows

Always looking at having curl on windows.
Sure you could simply install it, but if you already have git installed, then you have curl.
It’s located here (of course depending on where you installed git) : C:\Program Files\Git\usr\bin on windows.

So I just create a bat file in C:\Program Files\curl-cmd and create a shortcut on your desktop for example and then use curl to play with some rest apis.

@echo off
set PATH=C:\Program Files\Git\usr\bin;%PATH%
color 17
echo.
echo. ____________________________
echo.
echo.   Play with curl
echo.   curl --help for more info
echo. ____________________________
echo.
echo.
cd c:\Temp
call cmd

for example access firebase api:

curl 'https://docs-examples.firebaseio.com/rest/saving-data/fireblog/posts.json?print=pretty'

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s