但远山长
云山乱
晓山青
之前在http响应报文的长度中讲了http响应报文是如何告知客户端他要接收的长度的,其中就讲到了“chunked”编码,那“chunked”编码具体怎么实现长度控制的呢?
首先看一下http的响应头:
HTTP/1.1 200 OK
Bdpagetype: 1
Bdqid: 0x8329f5fd0015bc7c
Cache-Control: private
Connection: Keep-Alive
Content-Type: text/html
Cxy_all: baidu+bb9179976040c4ccb6e0a0874e8067bc
Date: Sun, 06 Oct 2019 14:58:02 GMT
Expires: Sun, 06 Oct 2019 14:57:02 GMT
P3p: CP=" OTI DSP COR IVA OUR IND COM "
Server: BWS/1.1
Set-Cookie: BAIDUID=8B326F960B2A4633073E07FA262961F3:FG=1; expires=Thu, 31-Dec-37 23:55:55 GMT; max-age=2147483647; path=/; domain=.baidu.com
Set-Cookie: BIDUPSID=8B326F960B2A4633073E07FA262961F3; expires=Thu, 31-Dec-37 23:55:55 GMT; max-age=2147483647; path=/; domain=.baidu.com
Set-Cookie: PSTM=1570373882; expires=Thu, 31-Dec-37 23:55:55 GMT; max-ag