Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Is there a way to install cURL in windows in order to run cURL commands from the command prompt?

share|improve this question

6 Answers 6

up vote 57 down vote accepted

Of course!

Download cURL for Windows from here (and be sure to select it from Win32 - Generic way down on the page). Then place it in a directory inside your PATH environment variable (ie: C:\Windows\System32) or run it with it's full path preceding the executable name. If you place it in a directory that's inside your PATH, make sure to close and then reopen command prompt to make the command available.

share|improve this answer
You don't need to reopen the console if you put it in a directory on the path, you only need to do that if you change the PATH variable. –  Eltariel May 11 '12 at 3:24
One hard reboot later because I couldn't kill the task - um, you might wanna be careful with this. –  CAD bloke Feb 26 '13 at 9:51
Related; can you also install libraries for https? –  Imray Oct 29 '14 at 19:40

If you install Git for Windows you get Curl automatically too. There are some advantages:

  • Git takes care of the PATH setup during installation automatically.
  • You get the GNU bash, a really powerful shell, in my opinion much better than the native Windows console.
  • You get many other useful Linux tools like tail, cat, grep, gzip, pdftotext, less, sort, tar, vim and even Perl.

enter image description here

share|improve this answer
I didn't know the git bash did the other stuff too :D Thanks a ton! –  BRogers Dec 15 '13 at 18:23
worked like a charm! –  Pedro Apr 26 '14 at 21:04

After installing OpenSSL Light, restart Windows, open Command Prompt, then do a test command like:

curl http://www.google.com

If you get HTML tags back, it worked.

share|improve this answer

How to setup cURL:

  • Download and unzip 64-bit cURL with SSL.
  • Copy the curl.exe file into your Windows PATH folder. By default, this is C:\Windows\System32.
  • Download and install the Visual Studio 2010 C++ Runtime Redistributable 64 bit here.
  • Download the latest bundle of Certficate Authority Public Keys from mozilla.org here.
  • Rename this file from cacert.pem to curl-ca-bundle.crt.
  • Move this file into your Windows PATH folder.

How to test it:

  • Run cmd.exe to open your command prompt.
  • For both commands, you should see a couple pages of the HTML source code. If you see this, cURL is up and running!
share|improve this answer

You can install this "cURL for Windows": cURL for Windows is an MSI installer for cURL, the popular command-line web transfer tool. http://www.confusedbycode.com/curl/

share|improve this answer

No need to restart windows but restarting CMD is necessary.

  1. Install cURL from curl.haxx.se.
  2. Set Path environment variable according to location of curl.exe in your machine, something like C:\Users\You\cURL
  3. Download the certificate file from mozilla.org as linked in one of the answers above, and move it to system32 folder.
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.