小编fid*_*NET的帖子

没有-v,301卷曲不会显示

我正在查看几个2.level域用于重定向到他们的www 3.level域的301,我认为卷曲本身就足够了,例如

curl  myvote.io
<HTML><HEAD><meta http-equiv="content-type" content="text/html;charset=utf-8">
<TITLE>301 Moved</TITLE></HEAD><BODY>
<H1>301 Moved</H1>
The document has moved
<A HREF="http://www.myvote.io/">here</A>.
</BODY></HTML>
Run Code Online (Sandbox Code Playgroud)

但是,我必须使用curl -v来获取另一个域上的任何输出:

curl -v evitaochel.com
* Rebuilt URL to: evitaochel.com/
* Hostname was NOT found in DNS cache
*   Trying 62.116.130.8...
* Connected to evitaochel.com (62.116.130.8) port 80 (#0)
> GET / HTTP/1.1
> User-Agent: curl/7.35.0
> Host: evitaochel.com
> Accept: */*
>
< HTTP/1.1 301 Moved Permanently
< Date: Mon, 13 Oct 2014 16:18:02 GMT
* Server Apache is not blacklisted …
Run Code Online (Sandbox Code Playgroud)

redirect curl http-status-code-301

3
推荐指数
1
解决办法
2万
查看次数

标签 统计

curl ×1

http-status-code-301 ×1

redirect ×1