Chinaunix首页 | 论坛 | 博客
  • 博客访问: 29990
  • 博文数量: 15
  • 博客积分: 385
  • 博客等级: 一等列兵
  • 技术积分: 210
  • 用 户 组: 普通用户
  • 注册时间: 2011-03-27 13:27
文章分类

全部博文(15)

文章存档

2013年(3)

2012年(2)

2011年(10)

我的朋友

分类: LINUX

2011-05-22 22:11:37

content-encoding 有三种gzip,compress,deflate,都是压缩算法content-transfer-encode ,只有一种chunking.

在response header中:
Content-Encoding :      ------>HTTP compression,request header-->Accept-Encoding: gzip, deflate
Transfer-Encoding :


Transfer-Encoding: chunked
当不能预先确定报文体的长度时,不可能在头中包含Content-Length域来指明报文体长度,此时就需要通过Transfer-Encoding域来确定报文体长度。通常情况下,Transfer-Encoding域的值应当为chunked,表明采用chunked编码方式来进行报文体的传输。chunked编码是HTTP/1.1 RFC里定义的一种编码方式,因此所有的HTTP/1.1应用都应当支持此方式。chunked编码的基本方法是将大块数据分解成多块小数据,每块都可以自指定长度.
"
HTTP Header Fields Referencs:

Cookie[Request] , Set-Cookie[Response]

Set-Cookie: Domain and Path,Expires and Max-Age,Secure and HttpOnly
Set-Cookie: ...; Domain=docs.foo.com; Path=/ctxPath; Expires=Wed, 13-Jan-2021 22:23:01 GMT; Secure; HttpOnly
Set-Cookie: ...; Domain=.foo.com; Path=/; Expires=Wed, 13-Jan-2021 22:23:01 GMT; HttpOnly

 
 
阅读(5024) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~