根据规范,分块行为需要传输编码才能工作。
但是,在调试期间,我观察到当标头不在响应中时,客户端似乎可以很好地处理它。
tcpdump 跟踪大致是:
没有 Transfer-Encoding 标头:
HTTP GET equest
HTTP 200 ok response
a list of Continuation or non-http traffic, of various sizes
8258 Continuation or non-HTTP traffic
16450 Continuation or non-HTTP traffic
带有传输编码标头:
HTTP GET equest
HTTP 200 ok response
a list of Continuation or non-http traffic, of same size
8266 Continuation or non-HTTP traffic
看来客户端(卷曲)不依赖于传输编码标头?如果是,它怎么知道?
谢谢,