Run cURL commands from Windows console

2019-01-03 00:46发布

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

17条回答
走好不送
2楼-- · 2019-01-03 01:37
  1. Go to curl Download Wizard
  2. Select curl executable
  3. Select Win32 or Win64
  4. Then select package for it(Eg generic/cygwin) as per your requirement
  5. Then you will have to select version. You can select unspecified.
  6. This will directly take you to download link which on click will give you popup to download the zip file.
  7. Extract the zip to get the executable. Add this folder in your environment variables and you are done. You can then execute curl command from cmd.
查看更多
倾城 Initia
3楼-- · 2019-01-03 01:37

For anyone looking for a quick solution, after having standard installed cygwin but finding out curl did not work on a win 10 x64 platform:

Downloading this retired repository, extracting it and running:

git-cmd.bat

Worked like a charm. I assume it has the pre-installed option for curl.

查看更多
姐就是有狂的资本
4楼-- · 2019-01-03 01:38

I am may be bit late for this, but I am able to resolve my issue of curl at cmd for windows 10.

I got help from below video tutorial https://www.youtube.com/watch?v=qlTVMuONazs

Here is some explanation

Step 1: go to https://curl.haxx.se/download.html

Step 2: Search "Win64 - Generic" and download "Win64 x86_64 7zip" by "Darren Owen"

Step 3: unzip the download file and install the certificate "ca-bundle.crt" do not touch curl.exe

Step 4: in windows go to "Control Panel" -> "System" -> "Advance system settings " Step 5: click on Envirnoment variables

Step 6: In System variable click on "Path" and paste the path of the file folder in my case it is "C:\curl\curl_7_53_1_openssl_nghttp2_x64"

And you are done.

Don't Forgot to restart you system for one time

查看更多
爷、活的狠高调
5楼-- · 2019-01-03 01:40

If you have Git installed on windows you can use the GNU Bash.... it's built in.

https://superuser.com/questions/134685/run-curl-commands-from-windows-console/#483964

查看更多
我只想做你的唯一
6楼-- · 2019-01-03 01:40

Create batch file in windows and enjoy with cURL in windows :)

@echo off
echo You are about to use windows cURL, Enter your url after curl command below:
set /p input="curl "
cls
echo %input%
powershell -Command "(new-object net.webclient).DownloadString('%input%')"
pause
查看更多
登录 后发表回答