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
阅读(5038) | 评论(0) | 转发(0) |