Is there a way to install cURL in Windows in order to run cURL commands from the command prompt?
相关问题
- Inheritance impossible in Windows Runtime Componen
- Google Apps Script: testing doPost() with cURL
- how to get running process information in java?
- Is TWebBrowser dependant on IE version?
- Can I skip certificate verification oracle utl_htt
相关文章
- 如何让cmd.exe 执行 UNICODE 文本格式的批处理?
- 怎么把Windows开机按钮通过修改注册表指向我自己的程序
- Warning : HTML 1300 Navigation occured?
- Bundling the Windows Mono runtime with an applicat
- Windows 8.1 How to fix this obsolete code?
- Compile and build with single command line Java (L
- CosmosDB emulator can't start since port is al
- How to print to stdout from Python script with .py
If you use the Chocolatey package manager, you can install cURL by running this command from the command line or from PowerShell:
I was able to use this site to easily download and install curl on my Windows machine. It took all of 30 seconds. I'm using Windows 7 (w/ Admin privelages), so I downloaded curl-7.37.0-win64.msi from http://curl.haxx.se/download.html.
Also, don't forget to restart your console/terminal after you install curl, otherwise you will get the same error messages.
curl.exe
and.crt
toC:\Windows\System32
> curl https://api.stackexchange.com
p.s. If you want another folder to store executable check your paths
> echo %PATH%
Folks that don't literally need the
curl
executable, but rather just need to e.g. see or save the results of a GET request now and again, can usepowershell
directly. From a normal command prompt, type:which, while a bit wordy, is similar to typing
in a more Unix-ish environment.
More information about
net.webclient
is available here: WebClient Methods (System.Net).UPDATE: I like how ImranHafeez took this one step further in this answer. I'd prefer a simpler cmd-script however, maybe creating a
curl.cmd
file containing this:which could be called just like the Unix-ish example above:
Install Git for windows Then use git bash to run curl commands.
From Windows Command Prompt, run curl through Git Bash