
Netwrok

熟悉 TCP/IP 协议

端口与协议

telnet 命令

演示

telnet 访问网页

shell$ telnet www.google.com 80
> GET / HTTP/1.1
>
< HTTP/1.1 302 Found
< Location: http://www.google.com/intl/zh-CN/
< Cache-Control: private
< Set-Cookie: PREF=ID=982e67a08a281a90:NW=1:TM=1146559164:LM=1146559164:S=CzMJ-jFB
< HxvO8mXh; expires=Sun, 17-Jan-2038 19:14:07 GMT; path=/; domain=.google.com
< Content-Type: text/html
< Server: GWS/2.1
< Content-Length: 230
< Date: Tue, 02 May 2006 08:39:24 GMT
<
< <HTML><HEAD><meta http-equiv="content-type" content="text/html;charset=utf-8">
< <TITLE>302 Moved</TITLE></HEAD><BODY>
< <H1>302 Moved</H1>
< The document has moved
< <A HREF="http://www.google.com/intl/zh-CN/">here</A>.
< </BODY></HTML>
> GET / HTTP/1.1
>
< HTTP/1.1 302 Found
< Location: http://www.google.com/intl/zh-CN/
< Cache-Control: private
< Set-Cookie: PREF=ID=982e67a08a281a90:NW=1:TM=1146559164:LM=1146559164:S=CzMJ-jFB
< HxvO8mXh; expires=Sun, 17-Jan-2038 19:14:07 GMT; path=/; domain=.google.com
< Content-Type: text/html
< Server: GWS/2.1
< Content-Length: 230
< Date: Tue, 02 May 2006 08:39:24 GMT
<
< <HTML><HEAD><meta http-equiv="content-type" content="text/html;charset=utf-8">
< <TITLE>302 Moved</TITLE></HEAD><BODY>
< <H1>302 Moved</H1>
< The document has moved
< <A HREF="http://www.google.com/intl/zh-CN/">here</A>.
< </BODY></HTML>

Windows98

知识点

DOS 命令行
