Download as pdf or txt
Download as pdf or txt
You are on page 1of 42

8/1/24, 9:53 How to Install and Use curl on Windows

HOME YOUTUBE TWITTER SUBSCRIBE 

Windows OS

How to Install and Use curl on


Windows
1 year ago • by Rafia Zafar

curl is a command-line utility used on Windows, Linux, and Mac


OS to transfer and receive data via various protocols, including
HTTPS, SMP, FTP, SFTP, alt-svc, CA Extract, HSTS, SSL Certs,
and SSL libs compared, and many more. All transfer-related
functionality in curl is powered by libcurl, which is a client-side
URL transfer library.

The instructions required for the installation of curl on Windows


will be illustrated in this blog.

curl Installation on Windows

Follows the below-listed procedure to install curl on Windows.

https://linuxhint.com/install-use-curl-windows/ 1/42
8/1/24, 9:53 How to Install and Use curl on Windows

Step 1: Download curl Installer File

First, download the curl installer file for curl installation by visiting
the below-provided link:

https://curl.se/download.html

https://linuxhint.com/install-use-curl-windows/ 2/42
8/1/24, 9:53 How to Install and Use curl on Windows

Press “CTRL+F” to view the search menu and type out


“Windows” as shown in the highlighted bar. Then, download the
curl installer file according to your system specifications. For
instance, we have selected the “Windows 64 bit” binary setup
file:

https://linuxhint.com/install-use-curl-windows/ 3/42
8/1/24, 9:53 How to Install and Use curl on Windows

Within a few minutes, the “curl-7.84.0_4-win64-mingw.zip”


setup file will be downloaded and saved in the “Downloads”
folder:

https://linuxhint.com/install-use-curl-windows/ 4/42
8/1/24, 9:53 How to Install and Use curl on Windows

Step 2: Create a “Curl” Folder

In the next step, create a new folder named “Curl” in the C drive:

https://linuxhint.com/install-use-curl-windows/ 5/42
8/1/24, 9:53 How to Install and Use curl on Windows

Step 3: Paste Setup Folder Into “Curl” Folder

Go to the “Downloads” directory where the curl zipped folder is


saved:

Before copying the curl setup folder, extract it first using right-
click menu:

https://linuxhint.com/install-use-curl-windows/ 6/42
8/1/24, 9:53 How to Install and Use curl on Windows

Select the extracted folder and press “CTRL+C” to copy it:

https://linuxhint.com/install-use-curl-windows/ 7/42
8/1/24, 9:53 How to Install and Use curl on Windows

Then, move to the newly created “Curl” folder in the C drive, open
it, and press “CTRL+V” to paste the copied setup folder:

https://linuxhint.com/install-use-curl-windows/ 8/42
8/1/24, 9:53 How to Install and Use curl on Windows

Step 4: Find and Copy curl Setup Path

Open the curl setup folder and go to the “bin” folder to find the
curl.exe file:

https://linuxhint.com/install-use-curl-windows/ 9/42
8/1/24, 9:53 How to Install and Use curl on Windows

After finding the required curl.exe file, right-click on the folder


path for copying it:

Step 5: Set Path in Environment Variables

https://linuxhint.com/install-use-curl-windows/ 10/42
8/1/24, 9:53 How to Install and Use curl on Windows

After copying the curl setup file path, go to the “Startup” menu,
search for “Environment Variables”, and open it from displayed
results:

Upon doing so, the “System Properties” window will appear.


Click on the “Environment Variables” button:
https://linuxhint.com/install-use-curl-windows/ 11/42
8/1/24, 9:53 How to Install and Use curl on Windows

Select the “Path” from the “System variables” section and click
on the “Edit” button:

https://linuxhint.com/install-use-curl-windows/ 12/42
8/1/24, 9:53 How to Install and Use curl on Windows

After that, click on the “New” button and paste the copied curl
setup file path as shown in below highlighted output. Then, click
on the “OK” button:

https://linuxhint.com/install-use-curl-windows/ 13/42
8/1/24, 9:53 How to Install and Use curl on Windows

At this point, we have successfully installed and configured curl


on our Windows system. Let’s verify curl installation by checking
its version.

Step 6: Verify curl Installation

First, open up the command prompt using the “Startup” menu:

https://linuxhint.com/install-use-curl-windows/ 14/42
8/1/24, 9:53 How to Install and Use curl on Windows

Type the below-provided command in the opened window to


verify curl’s version:

> curl --version

https://linuxhint.com/install-use-curl-windows/ 15/42
8/1/24, 9:53 How to Install and Use curl on Windows

As you can see, we have successfully installed curl version


“7.78.0” on Windows.

curl Usage on Windows

On Windows, to use curl, check out the below-listed examples.

Example 1: Get URL Homepage

You can use the curl command along with the URL to get and
print the Homepage of any website. For instance, the following
curl command will get Google homepage:

> curl www.google.com

https://linuxhint.com/install-use-curl-windows/ 16/42
8/1/24, 9:53 How to Install and Use curl on Windows

Example 2: Get Header Information

To get the header information of any website, use the curl


command with the “-i” option and provide the URL:

https://linuxhint.com/install-use-curl-windows/ 17/42
8/1/24, 9:53 How to Install and Use curl on Windows

> curl -i www.google.com

The given output displayed the header information of the Google


website:

Example 3: Download Setup File

Want to download a setup file? Utilize the curl command and


specify the URL of the required file:

https://linuxhint.com/install-use-curl-windows/ 18/42
8/1/24, 9:53 How to Install and Use curl on Windows
> curl -O https://freefilesync.org/download.php

Example 4: Get Help

When a curl command is executed with the “–help” option, it


prints out its manual on the command prompt:

> curl --help

https://linuxhint.com/install-use-curl-windows/ 19/42
8/1/24, 9:53 How to Install and Use curl on Windows

We have demonstrated the methods to install and use curl on


Windows.

Conclusion

To install the curl command-line utility on Windows, first,


download the installer setup file. After that, make a new directory
curl in the “C” drive and paste the setup into the newly created
curl folder. Then, find and copy the setup path and set it in the
Environment variables as discussed earlier. This blog has
effectively elaborated the method to install and use curl on
Windows.

https://linuxhint.com/install-use-curl-windows/ 20/42
8/1/24, 9:53 How to Install and Use curl on Windows

ABOUT THE AUTHOR

Rafia Zafar
I am graduated in computer science. I am a junior
technical author here and passionate about
Programming and learning new technologies. I have
worked in JAVA, HTML 5, CSS3, Bootstrap, and PHP.

View all posts

RELATED LINUX HINT


POSTS

https://linuxhint.com/install-use-curl-windows/ 21/42
8/1/24, 9:53 How to Install and Use curl on Windows

How to Create and Manage Tasks

Using Windows Task Scheduler

How to Access Linux WSL

Development Environment from

Visual Studio Code on Windows

10/11

How to Install the Latest

TensorFlow on Windows 10/11 with

NVIDIA CUDA/cuDNN Acceleration

via WSL

How to Add New Routes to the

Windows Routing Table

Format a USB Flash Drive on

Windows (4 Methods)

Batch File Syntax: Understanding

and Mastering the Syntax for

Batch Scripting

Batch File Prompt for Input: How


to Create Interactive Batch

Scripts

https://linuxhint.com/install-use-curl-windows/ 22/42
8/1/24, 9:53 How to Install and Use curl on Windows

https://linuxhint.com/install-use-curl-windows/ 23/42
8/1/24, 9:53 How to Install and Use curl on Windows

https://linuxhint.com/install-use-curl-windows/ 24/42
8/1/24, 9:53 How to Install and Use curl on Windows

https://linuxhint.com/install-use-curl-windows/ 25/42
8/1/24, 9:53 How to Install and Use curl on Windows

https://linuxhint.com/install-use-curl-windows/ 26/42
8/1/24, 9:53 How to Install and Use curl on Windows

https://linuxhint.com/install-use-curl-windows/ 27/42
8/1/24, 9:53 How to Install and Use curl on Windows

https://linuxhint.com/install-use-curl-windows/ 28/42
8/1/24, 9:53 How to Install and Use curl on Windows

https://linuxhint.com/install-use-curl-windows/ 29/42
8/1/24, 9:53 How to Install and Use curl on Windows

https://linuxhint.com/install-use-curl-windows/ 30/42
8/1/24, 9:53 How to Install and Use curl on Windows

https://linuxhint.com/install-use-curl-windows/ 31/42
8/1/24, 9:53 How to Install and Use curl on Windows

https://linuxhint.com/install-use-curl-windows/ 32/42
8/1/24, 9:53 How to Install and Use curl on Windows

https://linuxhint.com/install-use-curl-windows/ 33/42
8/1/24, 9:53 How to Install and Use curl on Windows

https://linuxhint.com/install-use-curl-windows/ 34/42
8/1/24, 9:53 How to Install and Use curl on Windows

https://linuxhint.com/install-use-curl-windows/ 35/42
8/1/24, 9:53 How to Install and Use curl on Windows

https://linuxhint.com/install-use-curl-windows/ 36/42
8/1/24, 9:53 How to Install and Use curl on Windows

https://linuxhint.com/install-use-curl-windows/ 37/42
8/1/24, 9:53 How to Install and Use curl on Windows

https://linuxhint.com/install-use-curl-windows/ 38/42
8/1/24, 9:53 How to Install and Use curl on Windows

https://linuxhint.com/install-use-curl-windows/ 39/42
8/1/24, 9:53 How to Install and Use curl on Windows

https://linuxhint.com/install-use-curl-windows/ 40/42
8/1/24, 9:53 How to Install and Use curl on Windows

https://linuxhint.com/install-use-curl-windows/ 41/42
8/1/24, 9:53 How to Install and Use curl on Windows

Linux Hint LLC, editor@linuxhint.com


1309 S Mary Ave Suite 210, Sunnyvale, CA
94087
Privacy Policy and Terms of Use

A RAPTIVE PARTNER SITE

https://linuxhint.com/install-use-curl-windows/ 42/42

You might also like