http协议基于socket接口实现
HTTP:REST架构,C/S模式,请求类型:GET、PUT、HEAD、POST。
1、client端发送get包:"GET /pub/WWW/TheProject.html HTTP/1.1\r\nHost: www.w3.org\r\n"









响应包:







------<body>-------
2、client端发送post包:
POST /form/entry HTTP/1.1
Host: hackr.jp
Connection: keep-alive
Content-Type: application/x-www-form-urlencoded
Content-Length: 16
name=ueno&age=37
响应包:
HTTP/1.1 200 OK
Date: Tue, 10 Jul 2012 06:20:15 GMT(响应首部字段)
Content-Length: 362
Content-Type: text/html
<html>
...
3、client端发送head包: