如何通过curl测试一个网站是否是301跳转
例如:
curl -I -m 10 -o /dev/null -s -w %{http_code} baidu.com
返回状态值200
curl -I -m 10 -o /dev/null -s -w %{http_code} 503error.com
返回状态值为301
Latest posts by Zhiming Zhang (see all)
- aws eks node 自动化扩展工具 Karpenter - 8月 10, 2022
- ReplicationController and ReplicaSet in Kubernetes - 12月 20, 2021
- public key fingerprint - 5月 27, 2021