码迷,mamicode.com
首页 > Web开发 > 详细

HTTP

时间:2015-07-14 20:14:05      阅读:130      评论:0      收藏:0      [点我收藏+]

标签:

  启动本地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

  

HTTP

标签:

原文地址:http://www.cnblogs.com/bigwolf/p/4646210.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!