五八零教育网
您的当前位置:首页HowtoaccessHTTPserverusingTelnet

HowtoaccessHTTPserverusingTelnet

来源:五八零教育网


How to access HTTP server using Telnet 1、Telnet www.baidu.com 80 Type: Ctrl + ] //------------------------------------------------------------------------------- Type: Enter //--------------------------------------------------------------

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 "

tle>百度一下,你就知道 ead>
登录v>

usemap="#mp" id=lg>

<
td>新 闻网&n
bsp;页
贴 吧k=s(this) href=http://zhidao.baidu.com>知 道p://mp3.baidu.com>MP3图
片视 频tr>

n=top>

hi.baidu.com>空间 hao123 |
更多>>


e=height:60px>>


)';this.setHomePage('http://www.baidu.com')" href=http://utility.baidu.com/traf/
click.php?id=215&url=http://www.baidu.com>把百度设为主页

14px>加入百度推广 |
搜索风云榜 | 关于百度 | baidu.com>About Baidu

©2009 Baidu om/duty/>使用百度前必读 京I
CP证030173号

a shape=rect coords="43,22,227,91" href=http://hi.baidu.com/baidu/ target=_blank
title="点此进入 百度空间">

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('s?v=1.1.0.3>')};if(window.attachEvent){window.attachEvent("onload",fun
ction(){w.focus();})}else{window.addEventListener('load',function(){w.focus()},t
rue)};window.onunload=function(){};

失去了跟主机的连接。

C:/Documents and Settings/Administrator>

显示全文