[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: 在Debian下访问E度网站自动跳转到新??



在 2010年7月20日 上午9:16,李文明 <lwm321@gmail.com> 写道:
> 执行脚本的结果:
>
> ./expect
> spawn telnet www.eduu.com 80
> GET / HTTP/1.1
> Host: www.eduu.com
> User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.6)
> Gecko/20100627 Firefox/3.6.6 GTB7.1
> Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
> Accept-Language: zh-cn,zh;q=0.5
> Accept-Encoding: gzip,deflate
> Accept-Charset: GB2312,utf-8;q=0.7,*;q=0.7
> Keep-Alive: 115
> Connection: keep-alive
>
>
> Trying 210.51.17.57...
> Connected to www.eduu.com.
> Escape character is '^]'.
> HTTP/1.1 301 Moved Permanently
> Server: nginx
> Date: Tue, 20 Jul 2010 01:15:16 GMT
> Content-Type: text/html
> Transfer-Encoding: chunked
> Connection: keep-alive
> Keep-Alive: timeout=20
> Location: http://www.sina.com/
>
> b2
> <html>
> <head><title>301 Moved Permanently</title></head>
> <body bgcolor="white">
> <center><h1>301 Moved Permanently</h1></center>
> <hr><center>nginx</center>
> </body>
> </html>
>
> 0
>
>
受教了,没想到还有这么稀奇古怪的东西。

-- 
Liang Guo
http://bluestone.cublog.cn


Reply to: