[root@localhost ~]# curl www.baidu.com ??????????????????????????????# 访问百度,访问出来的内容是源代码[root@localhost ~]# curl -I www.baidu.com ???????????????????????????# -I 用于表示访问 http 首部信息[root@localhost ~]# curl -u username:password http://www.xxxx.com ???# -u 用于访问需要验证的网页[root@localhost ~]# curl -O https://www.baidu.com/img/bd_logo1.png ??# -O 用于下载网页上的资源,功能与 wget 一致[root@localhost ~]# curl -o baidu.png https://xxx/bd_logo1.png ??????# -o 用于下载并重命名
curl 命令
原文地址:https://www.cnblogs.com/mingerlcm/p/8656342.html