Thursday, March 30, 2017

cURL on Windows in only two steps

Hello and welcome. This is really a short post here, 

cURL is a very useful tool for interacting with web APIs and services. I just found that lots of students and friends refrain from following lots of steps to install such a simple CLI tool.

I depend in my proposition on chocolatey and a package created by their wonderful community, so the first step is to actually install chocolatey by the command below. If you already have it installed, skip to step two.

Step One
Run on cmd.exe as an administrator :
@powershell -NoProfile -ExecutionPolicy Bypass -Command "iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))" && SET "PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin"
At this time , you might want to close your cmd and reopen it , again as an administrator

Step Two
cinst curl -y
That's it, now from the cmd try
curl wttr.in/cairo

TaDaa !! and that would be the weather in Cairo.. It's getting hot in here 😆 .. see ya..

Popular