curl命令总结

打印curl总耗时

curl -w " %{time_total}s" https://www.baidu.com

输出出口公网ip

curl -s myip.ipip.net

输出服务端证书过期时间

curl -v https://www.baidu.com 2>&1 | grep "expire date"

常用参数

# 指定源端口
--local-port xxx
# 指定用户名和密码
-u "xx:xx"
# 显示调用详情
-v
# 下载文件,指定文件名是xxx
-o xxx
# 指定网口或者ip地址
--interface

 

posted on 2023-01-08 19:34  王景迁  阅读(127)  评论(0)    收藏  举报

导航