为何我用TELNET都法GET WEB服务器的页面呢
我在TELNET里输入如下命令
open localhost 80
get /test.htm http/1.1
[回车键]
[回车键]
总是返回这样的信息
HTTP/1.1 400 Bad Request
Server: Microsoft-IIS/5.1
Date: Sat, 23 Aug 2003 12:57:26 GMT
Content-Type: text/html
Content-Length: 87
<html><head><title>Error</title></head><body>The parameter is incorrect. </body>
</html>
而正确的信息应该是这样的
HTTP/1.1 200 OK
Server: Microsoft-IIS/5.1
Date: Sat, 23 Aug 2003 12:57:26 GMT
Content-Type: text/html
Content-Length: 26
<html>
<body>
</body>
</html>