xyqhello

安装cURL.

1, 下载64位的SSL版cURL,网址: http://curl.download.nextag.com/download/curl-7.21.7-win64-ssl-sspi.zip.

2, 解压,复制curl.exe到Windows的系统环境目录,默认是 C:\Windows\System32 .

3, 下载安装Visual Studio 2010 C++ Runtime Redistributable 64 bit,网址http://www.microsoft.com/zh-cn/download/details.aspx?id=13523

4, 下载最新版Certficate Authority Public Keys,网址http://curl.haxx.se/ca/cacert.pem(右键另存为即可).

5, 把cacert.pem重命名为curl-ca-bundle.crt

6, 把curl-ca-bundle.crt移动到Windows系统环境目录,默认是C:\Windows\System32.

一, 测试cURL.

打开命令行,输入如下命令.

curl -L http://www.google.com

curl -L https://www.google.com

运行这2个命令,如果都能看到Google的HTML代码,说明cURL已经安装成功.

 

原文地址:

分类:

技术点:

相关文章:

  • 2021-11-18
  • 2021-07-29
  • 2022-02-17
  • 2021-08-15
  • 2021-05-21
  • 2021-09-30
  • 2021-12-15
猜你喜欢
  • 2022-01-31
  • 2022-03-02
  • 2021-07-13
  • 2021-06-25
  • 2021-11-15
  • 2021-12-14
  • 2022-02-19
相关资源
相似解决方案