How to access HTTP server using Telnet - 如何使用 Telnet 访问 Http 服务器

How to access HTTP server using Telnet

 

1、Telnet www.baidu.com 80

 

Type : Ctrl + ]
//-------------------------------------------------------------------------------

Type : Enter

//-------------------------------------------------------------------------------

Input : GET / HTTP/1.1  
Type : Enter
Input : HOST:     
Type : Enter Enter

//-------------------------------------------------------------------------------
HTTP/1.1 200 OK
Date: Thu, 22 Oct 2009 02:09:34 GMT
Server: BWS/1.0
Content-Length: 3520
Content-Type: text/html;charset=gb2312
Cache-Control: private
Expires: Thu, 22 Oct 2009 02:09:34 GMT
Set-Cookie: BAIDUID=DEE7265CF1D01127B2546D43AE4DB87C:FG=1; expires=Thu, 22-Oct-3
9 02:09:34 GMT; path=/; domain=.baidu.com
P3P: CP=" OTI DSP COR IVA OUR IND COM "

<html><head><meta http-equiv=Content-Type content="text/html;charset=gb2312"><ti
tle>百度一下,你就知道      </title><style>body{margin:4px 0}p{margin:0;padding:
0}img{border:0}td,p,#u{font-size:12px}#b,#u,#l td,a{font-family:arial}#kw{font:1
6px Verdana;height:1.78em;padding-top:2px}#b{height:30px;padding-top:4px}#b,#b a
{color:#77c}#u{padding-right:10px;line-height:19px;text-align:right;margin:0 0 3
px !important;margin:0 0 10px}#sb{height:2em;width:5.6em}#km{height:50px}#l{marg
in:0 0 5px 15px}#l td{padding-left:107px}p,table{width:650px;border:0}#l td,#sb,
#km{font-size:14px}#l a,#l b{margin-right:1.14em}a{color:#00c}a:active{color:#f6
0}#hp{position:absolute;margin-left:6px}#lg{margin:-26px 0 -44px}#lk{width:auto;
line-height:18px;vertical-align:top}form{position:relative;z-index:9}</style></h
ead>
    <body><div id=u><a href=http://passport.baidu.com/?login&tpl=mn>登录</a></di
v><center><img src=http://www.baidu.com/img/baidu_logo.gif width=270 height=129
usemap="#mp" id=lg><br><br><br><br><table cellpadding=0 cellspacing=0 id=l><tr><
td><div id=m><a οnclick=s(this) href=http://news.baidu.com>新&nbsp;闻</a><b>网&n
bsp;页</b><a οnclick=s(this) href=http://tieba.baidu.com>贴&nbsp;吧</a><a onclic
k=s(this) href=http://zhidao.baidu.com>知&nbsp;道</a><a οnclick=s(this) href=htt
p://mp3.baidu.com>MP3</a><a οnclick=s(this) href=http://image.baidu.com>图&nbsp;
片</a><a οnclick=s(this) href=http://video.baidu.com>视&nbsp;频</a></div></td></
tr></table>
           <table cellpadding=0 cellspacing=0 style="margin-left:15px"><tr valig
n=top><td style="height:62px;padding-left:92px" nowrap><form name=f action=s><in
put type=text name=wd id=kw size=42 maxlength=100> <input type=submit value=百度
一下 id=sb><span id=hp><a href=/gaoji/preferences.html>设置</a><br><a href=/gaoj
i/advanced.html>高级</a></span></form></td></tr></table>
                                                        <p id=km><a href=http://
hi.baidu.com>空间</a>&nbsp;&nbsp;<a href=http://www.hao123.com>hao123</a>&nbsp;|
&nbsp;<a href=/more/>更多<span style="font-family:宋体">>></span></a></p>
                                                                         <p styl
e=height:60px><table cellpadding=0 cellspacing=0 id=lk><tr><td></td></tr></table
></p>
     <p style=height:30px><a onClick="this.style.behavior='url(#default#homepage
)';this.setHomePage('http://www.baidu.com')" href=http://utility.baidu.com/traf/
click.php?id=215&url=http://www.baidu.com>把百度设为主页</a></p><p style=height:
14px><a href=http://e.baidu.com>加入百度推广</a> | <a href=http://top.baidu.com>
搜索风云榜</a> | <a href=http://home.baidu.com>关于百度</a> | <a href=http://ir.
baidu.com>About Baidu</a></p><p id=b>&copy;2009 Baidu <a href=http://www.baidu.c
om/duty/>使用百度前必读</a> <a href=http://www.miibeian.gov.cn target=_blank>京I
CP证030173号</a> <img src=http://gimg.baidu.com/img/gs.gif></p><map name=mp><are
a shape=rect coords="43,22,227,91" href=http://hi.baidu.com/baidu/ target=_blank
 title="点此进入 百度空间"></map></center></body>
                                                 <script>var w=document.f.wd;fun
ction s(o){if(w.value.length>0){var h=o.href;var q=encodeURIComponent(w.value);i
f(h.indexOf("q=")!=-1){o.href=h.replace(new RegExp("q=[^&$]*"),"q="+q)}else{o.hr
ef+="?q="+q}}};(function(){if(new RegExp("q=([^&]+)").test(location.search)){w.v
alue=decodeURIComponent(RegExp.$1)}})();if(navigator.cookieEnabled&&!/sug?=0/.te
st(document.cookie)){document.write('<script src=http://www.baidu.com/js/bdsug.j
s?v=1.1.0.3><//script>')};if(window.attachEvent){window.attachEvent("onload",fun
ction(){w.focus();})}else{window.addEventListener('load',function(){w.focus()},t
rue)};window.οnunlοad=function(){};</script></html><!--0e94a8fd6438cdd2-->

失去了跟主机的连接。

C:/Documents and Settings/Administrator>

 

Telnet_www.baidu.com_80

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值