1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
[root@oldboy ~]
# curl -s -o /dev/null -I -w "%{http_code}\n" http://www.etiantian.org
200
[root@oldboy ~]
# curl -s -o /dev/null -I -w "%{http_code}\n" http://etiantian.org
200
[root@oldboy ~]
# curl -s -o /dev/null -I -w "%{http_code}\n" http://baidu.com
200
[root@oldboy ~]
# curl -s -o /dev/null -I -w "%{http_code}\n" http://taobao.com
302
[root@oldboy ~]
# curl -s -o /dev/null -I -w "%{http_code}\n" http://qq.com
302
[root@oldboy ~]
# curl -s -o /dev/null -I -w "%{http_code}\n" http://jd.com
302
[root@oldboy ~]
# curl -s -o /dev/null -I -w "%{http_code}\n" http://51cto.com
301
[root@oldboy ~]
# curl -s -o /dev/null -I -w "%{http_code}\n" http://sina.com.cn
301
|
Http状态码301和302概念简单区别及企业应用案例
最新推荐文章于 2024-04-12 09:32:06 发布