A developer's braindump

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.   Play with curl
echo.   curl --help for more info
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'
Next: /2016/11/15/install-docker-on-windows-7-leads-to-error-enoent/
Prev: /2016/09/22/create-a-new-git-repository-from-one-folder-contained-in-another-git-repository/