Install cURL Command on Windows 10
The cURL command-line utility comes installed in most Unix Like operating systems, including Linux and Mac OS. But, the cURL command is not available on Microsoft Windows by default.
To get cURL for Windows 10, we will use git bash shell which provides useful unix command line tools for Windows. This is the easiest way to install cURL on Windows 10.
First, Got to URL https://git-scm.com/downloads and download the latest version of git for Windows.
After Download is finished, Run the git installer and install git with the default Options.
After the installation is finished, Open the Git Bash from the Windows 10 start menu. On the Git Bash shell Type:
curl --help
This will Print all the different command line options you can use in Windows cURL command.
Windows cURL Command Examples
Access URL and Dump Data to the Shell:
curl https://example.com
Access URL and Save data to an Output File.
curl https://example.com -o example.html
Download ZIP File.
curl https://example.com/example.zip -O
Download Files From the FTP Server:
curl -u username:password ftp://192.168.1.100/file1.txt -O
Upload Files to FTP Server:
curl -u username:password -T file1.txt ftp://192.168.1.100/
You can also use this guide to install cURL in windows 7 and Microsoft Windows Server 2016.