cURL#
只显示 Status Code#
$ curl -s -o /dev/null -I -w "%{http_code}" http://www.example.org/
- -s,–slient:
`` 防止因输出重定向而显示 progress bar
- -w,–write-out:
按固定格式输出,详情看 manpage
评论
如果你有任何意见,请在此评论。 如果你留下了电子邮箱,我可能会通过 回复你。
这是部署于 Deployment.Gitee 的镜像,访问源站点:Deployment.Github