request和response
2016-04-18 21:07
435 查看
HTTP Request包含以下三部分
POST /examples/default.jsp HTTP/1.1 Accept: text/plain; text/html Accept-Language: en-gb Connection: Keep-Alive Host: localhost User-Agent: Mozilla/4.0 (compatible; MSIE 4.01; Windows 98) Content-Length: 33 Content-Type: application/x-www-form-urlencoded Accept-Encoding: gzip, deflate lastName=Franks&firstName=Michael
Method—Uniform Resource Identifier (URI)—Protocol/Version(请求资源地址)——1行
Request headers(请求头)——2-9行
Entity body(请求实体)——11行
HTTP Response包含以下三部分
HTTP/1.1 200 OK Server: Microsoft-IIS/4.0 Date: Mon, 5 Jan 2004 13:13:33 GMT Content-Type: text/html Last-Modified: Mon, 5 Jan 2004 13:13:12 GMT Content-Length: 112 <html> <head> <title>HTTP Response Example</title> </head> <body> Welcome to Brainy Software </body> </html>
Protocol—Status code—Description——1行
Response headers(响应头)——2-6行
Entity body(响应实体)——8-15行
相关文章推荐
- leetcode 63. Unique Paths II
- ue4 Skeletal Mesh编辑器
- UIButton 的edgeInsets研究
- UIEdgeInsets 说明
- iOS--错误集锦--Failed to instantiate the default view controller for UIMainStoryboardFile 'Main'
- NJUST1925 sequence(贪心+二分)
- 关于使用百度富文本编辑器UE重新加载数据的问题
- String、StringBuffer与StringBuilder之间区别
- UIScrollView 遇到的小坑
- hailstone sequence
- 南京理工大学校外赛sequence
- Code Sign error: No matching provisioning profile found: Your build settings specify a provisioni.
- hdu 5667 Sequence (矩阵快速幂)
- 十大滤波算法程序大全(Arduino精编无错版)
- Qt Creator needs a compiler set up to build. Configure a compiler in the kit options.解决
- [Trie树] BZOJ 1819 [JSOI]Word Query电子字典
- protobuf的Required,Optional,Repeated限定修饰符
- Snail—UI学习之得到某组件的方法
- [单调栈] BZOJ 1345 [Baltic2007]序列问题Sequence
- iOS开发——纯代码界面(自定义UITableViewCell)