According the spec, Transfer-Encoding is required for the chunked behavior to work.
However, during debugging I observe that when the header is not in the response, the client appears to handle it just fine.
tcpdump trace is roughly:
Without Transfer-Encoding header:
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
with Transfer-encoding header:
HTTP GET equest
HTTP 200 ok response
a list of Continuation or non-http traffic, of same size
8266 Continuation or non-HTTP traffic
It appears that the client(curl) is not depending on the transfer-encoding header? if so how does it know?
Thanks,