CURL is a command-line tool for getting and sending data using various protocols. CURL supports various protocols. like DICT, FTP, FTPS, Gopher, HTTP (with HTTP/2 support), HTTP POST, HTTP PUT, HTTP proxy tunneling, HTTPS, IMAP, Kerberos, LDAP, POP3, RTSP, SCP, and SMTP.
In the Windows platform, if a CA certificate file is not specified, cURL will look for a CA certificate file name “curl-ca-bundle.crt” in the following order:
- Directory where the cURL program is located.
- Current working directory.
- Windows system directory.
- Windows directory.
- Directories specified in the %PATH% environment variables
Using CURL in windows is very easy. All You need to do is
- First you need to go
and download latest version of CURL zip file(which supports windows 64 bit).
- Extract the contents of zip file. Open the folder go to bin directory there you will find curl.exe file.
- Now all you need to do is copy that file and paste it in your project working directory where you want to use CURL.
- It’s not over yet, Still our command line won’t understand curl command. So we need to tell cmd by setting up the path of curl.exe in system environment variables.
Setting up the path of curl.exe in system environment variables.
- Go to system properties
- Select Advanced system settings
- In the system variables select path and click on Edit
- If you are using windows 10 click on new or else Add a semicolon followed by the path to where you placed your curl.exe. for example
D:\project working directory\curl.exe
Now Try running curl command in your current project working directory something like this curl www.google.com
It will work!