具体 看这篇文章  在Windows CMD命令行中使用curl

1.下载
curl官网下载地址:https://curl.haxx.se/download.html

拉至最下面选择  作者错误  官网无法下载到文章所说的文件 实际地址是 https://winampplugins.co.uk/curl/ 亲测能下

2.安装
下载后将

ca-bundle.crt
curl.exe

拷贝至C:\Windows\System32 或将所在文件夹添加至系统环境变量。

3.使用
打开命令行输入测试

 

实际上 win10 自带的 curl.exe 版本大概是7.5

我们用win10可以不用下  Win7需下按本文说的进行 但是存在一个严重的问题

我们 curl https://www.baidu.com 会出现下面的错误  目前无解 即使我们把所谓的crt证书放到了system32目录

curl: (35) schannel: next InitializeSecurityContext failed: Unknown error (0x80092012) - 吊销功能无法检查证书是否吊销。

放到win7 则是下面的错误提示   翻译过来  就是证书错误

curl: (60) SSL certificate problem: unable to get local issuer certificate
More deTails here: https://curl.haxx.se/docs/sslcerts.html

curl failed to verify the legitimacy of the server and therefore could not
establish a secure connection to it. To learn more about this situation and
how to fix it, please visit the web page mentioned above.

目前无解 所以用curl 还是老实的Linux系统吧

 

原文链接:https://blog.csdn.net/ccf547461296/article/details/52984501

声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。