HTTP

  启动本地tomcat,之后

  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

  

posted @ 2015-07-14 18:19  big-wolf  阅读(150)  评论(0编辑  收藏  举报