我在让cURL在Windows上运行时遇到了麻烦。

我已经从这里下载了一个cURL zip文件,但它似乎包含源代码,而不是可执行文件。

我需要编译cURL来运行它吗?如果是,那么我该怎么做?

我在哪里可以找到cURL的.exe下载?

我已经寻找了关于安装cURL的文档,但是几乎找不到。


当前回答

假设您是从https://curl.haxx.se/download.html获得的,只要将其解压缩到任何您想要的地方即可。无需安装。如果您打算使用SSL,您需要从curl的网站下载OpenSSL dll。

其他回答

Download curl zip Extract the contents (if you have downloaded the correct version you should find curl.exe) Place curl.exe in a folder where you keep your software (e.g. D:\software\curl\curl.exe) To run curl from the command line a) Right-hand-click on "My Computer" icon b) Select Properties c) Click 'Advanced system settings' link d) Go to tab [Advanced] - 'Environment Variables' button e) Under System variable select 'Path' and Edit button f) Add a semicolon followed by the path to where you placed your curl.exe (e.g. ;D:\software\curl)

现在你可以在命令行中输入:

curl www.google.com

下载cURL (Win64 ia64 zip binary with SSL) 解压curl.exe到C:\Windows\System32 完成

更简单的是:

下载Edward LoPinto提供的Win64 2000/XP x86_64 MSI安装程序。

在编写文件时,curl-7.46.0-win64.exe是最新的。在Windows 10上测试。

我已经成功地使用了Windows curl-installer: http://open-edx-windows-7-installation-instructions.readthedocs.io/en/latest/6_Install_cURL_for_Windows.html

使用cURL for Windows直接下载链接与msi-installer。 请记住在安装后重新启动系统。

我正在寻找Curl的下载过程,他们说在System32中复制Curl .exe文件,但他们没有提供直接链接。好了,在bin文件夹中找到curl。exe

解压它,然后去bin文件夹,你得到exe文件

链接下载curl通用型

我遵循了@theglauber的回答(最受欢迎的回答),但在Windows 10终端/ PowerShell上,环境设置不生效。

我不得不CD到GIT的位置,也使用。\ like如下:

PS C:\Program Files\Git\mingw64\bin> .\curl -X POST https://6sl8yohih.execute-api.us-west-1.amazonaws.com/dev/hello

不过,在常规命令提示符上我没有遇到任何问题。

只是把这篇文章作为对那些可能和我一样挣扎的人的回答。