Tags
linux
Created
May 20, 2016 3:53 AM
HTTPS的整个过程可以(git-bash自带curl):curl https://localhost -k -v -I
下载量:curl https://localhost -k -w' %{size_download}' -so /dev/null
- o 保存到文件
- L 自动跳转,location
- i/I 显示/(only)http头
- v 显示通信过程, verbose, --trace output.txt 保存
- k Allow connections to SSL sites without certs (H)。 ???
- X 指定请求方法
- x 指定 http 代理
- d post方法发送的data,有--data-urlencode,data-binary等
- F --form <name=content> Specify HTTP multipart POST data (H), 上传文件
- e 提供一个referer字段
- A/--user-agent <string> User-Agent to send to server (H)
- b/--cookie <name=string/file> Cookie string or file to read cookies from (H)
-c/--cookie-jar <file> Write cookies to this file after operation (H)
-H/--header <line> Custom header to pass to server (H) // -H "Content-Type: application/json"