Windows下安装使用curl命令
来源:互联网 发布:tensorflow.google.cn 编辑:程序博客网 时间:2024/06/06 08:58
本机环境
方法/步骤
1、进入网站
2、根据自己的操作系统位数和是否需要SSL下载相应的版本。
3、在本窗口下打开运行该命令
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
C:\common_command>curl -
v
-X OPTIONS https:
//www
.baidu.com/
*Adding handle: conn: 0x205e100
*Adding handle: send: 0
*Adding handle: recv: 0
*Curl_addHandleToPipeline: length: 1
* -Conn 0 (0x205e100) send_pipe: 1, recv_pipe: 0
*About to connect() to www.baidu.com port 443 (
#0)
* Trying 220.181.112.244...
* Connectedto www.baidu.com (220.181.112.244) port 443 (
#0)
*SSLv3, TLS handshake, Client hello (1):
*SSLv3, TLS handshake, Server hello (2):
*SSLv3, TLS handshake, CERT (11):
*SSLv3, TLS alert, Server hello (2):
* SSLcertificate problem: unable to get
local
issuer certificate
*Closing connection 0
curl:(60) SSL certificate problem: unable to get
local
issuer certificate
Moredetails here: http:
//curl
.haxx.se
/docs/sslcerts
.html
curlperforms SSL certificate verification by default, using a
"bundle"
of Certificate Authority (CA) public keys (CAcerts). If the default
bundle
file
isn't adequate, you can specify analternate
file
using the --cacert option.
Ifthis HTTPS server uses a certificate signed by a CA represented
in
the bundle, the certificate verificationprobably failed due to a
problem with the certificate (it might beexpired, or the name might
not match the domain name
in
the URL).
Ifyou
'd like to turn off curl'
s verification of the certificate, use
the -k (or --insecure) option.
C:\common_command>
4、加入系统环境变量
用户变量和系统变量的区别:
5、在其他路径下测试是否可以使用CURL命令
6、该命令常用作用
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
[zhang@zhang ~]$ curl -
v
-X OPTIONS https:
//www
.aliyun.com/
*About to connect() to www.aliyun.com port 443 (
#0)
* Trying 42.156.220.114... connected
*Connected to www.aliyun.com (42.156.220.114) port 443 (
#0)
*Initializing NSS with certpath: sql:
/etc/pki/nssdb
* CAfile:
/etc/pki/tls/certs/ca-bundle
.crt
CApath: none
* SSLconnection using TLS_RSA_WITH_AES_128_CBC_SHA
*Server certificate:
* subject: CN=*.aliyun.com,O=
"Alibaba(China) Technology Co., Ltd."
,L=HangZhou,ST=ZheJiang,C=CN
* start
date
: 12月 14 10:47:07 2015 GMT
* expire
date
: 12月 14 10:39:17 2016 GMT
* common name: *.aliyun.com
* issuer: CN=GlobalSign OrganizationValidation CA - G2,O=GlobalSign nv-sa,C=BE
>OPTIONS / HTTP
/1
.1
>User-Agent: curl
/7
.19.7 (x86_64-redhat-linux-gnu) libcurl
/7
.19.7 NSS
/3
.19.1Basic ECC zlib
/1
.2.3 libidn
/1
.18 libssh2
/1
.4.2
>Host: www.aliyun.com
>Accept: */*
>
<HTTP
/1
.1 200 OK
<Date: Thu, 14 Apr 2016 05:16:27 GMT
<Content-Type: text
/html
; charset=utf-8
<Transfer-Encoding: chunked
<Connection: close
<Vary: Accept-Encoding
<Server: Tengine
<Vary: Accept-Encoding
<Vary: Accept-Encoding
< Allow: GET
<Strict-Transport-Security: max-age=31536000
<Timing-Allow-Origin: *
<
*Closing connection
#0
2 0
- Windows下安装使用curl命令
- Windows下安装使用curl命令
- Windows下安装使用curl命令
- Windows下安装使用curl命令
- windows下使用curl命令
- windows下使用curl命令&&常用curl命令
- 在Windows下使用curl命令
- Windows下如何使用curl命令
- 在Windows下使用curl命令
- 在Windows下使用curl命令
- Windows下如何使用curl命令?
- windows环境下 curl 安装和使用
- windows使用curl命令
- windows使用curl命令
- windows使用curl命令
- Windows下安装curl
- 分答项目_知识点:Windows下安装使用curl命令
- Windows下curl使用
- SGU 113 Nearly prime numbers(素数判定)
- ACM-2003
- 【杭电】[1799]循环多少次?
- 智能指针的实现尝试
- MVC图解
- Windows下安装使用curl命令
- markdown(-)简介
- ACM-2004
- js求两者时间差
- sharding-jdbc使用
- Ceph部署时提示:/etc/init.d/ceph: line 15: /lib/lsb/init-functions: No such file or directory
- 关于 ScrollLayout加载时总是显示在中间的视图解决方法
- FZU 2215 Simple Polynomial Problem【模拟】【表达式计算】
- 通过JUnit进行Android单元测试