How to Install the Curl Command on Windows?
When testing Proxy Servers and performing tasks such as webpage content download, file download, and upload, the curl command is frequently used. Here are three methods to install the curl command on your Windows computer:
Installing the curl command in Windows can be done in the following ways:
What are the uses of the curl command? Please refer to: What are the uses of the curl command?
1. Using Built-in cURL in Windows 10 and Later Versions
Starting with the Spring 2018 update of Windows 10, Windows comes equipped with the curl tool. You can use it via Command Prompt (cmd) or PowerShell. To check if curl is already installed on your system, follow these steps:
Open Command Prompt (cmd) or PowerShell.
Type the command
curl --version
and press enter. If the system displays the version information of curl, it means it is already installed.
2. Manually Installing cURL
If your version of Windows does not come with built-in cURL, or if you need a different version, you can manually download and install it:
Visit the official cURL download page: cURL Download
Download the version appropriate for Windows. Typically, you will need to choose the version based on whether your system is 32-bit or 64-bit.
After downloading, extract it to your desired folder.
Add the directory of the cURL executable to the Windows environment variables, so you can use the curl command in any command-line window. Follow these steps to add an environment variable:
Right-click "This PC" or "Computer", and select "Properties".
Click on "Advanced System Settings".
In the System Properties window, select "Environment Variables".
In the "System Variables" area, find and select "Path", then click "Edit".
In the Edit Environment Variables window, click "New" and enter the path of the folder where the cURL executable is located.
Click "OK" to save the settings.
3. Installing via Package Manager
If you are accustomed to using a package manager, such as Chocolatey (a package manager for Windows), you can use the following method to install cURL:
First, install Chocolatey. Open Command Prompt or PowerShell in administrator mode, then run the installation script from the official website.
Use the following command to install cURL:
choco install curl
If you see an error message like the following, it indicates that Chocolatey is not installed
choco : The term 'choco' is not recognized as the name of a cmdlet, function, script file, or operable program. Check t
he spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:1
+ choco install curl
+ ~~~~~
+ CategoryInfo : ObjectNotFound: (choco:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
Once installed, you should be able to use the curl command in the command line. Any of these methods can help you successfully install cURL on Windows. If you encounter any issues, you can check if the environment variables are correctly set in the command line or redownload and reinstall to ensure the file is not corrupted.
How to Install the Curl Command on Windows? Review FAQ
Curl is an indispensable comma...
When testing Proxy Servers and...
When developing or managing ne...