启动本地tomcat,之后
cmd > telnet localhost 8080回车 GET / HTTP/1.1 Host:127.0.0.1 Content-Type:text/html
cmd > telnet localhost 8080回车
GET / HTTP/1.1
Host:127.0.0.1
Content-Type:text/html
后面要有2个回车
黑皮上会输出tomcat的首页。
返回格式
HTTP/1.1 200 OK Date: Tue, 14 Jul 2015 10:11:13 GMT Content-Type: text/html Content-Length: 14613