Shawn O. Pearce wrote:
Chunked Transfer Encoding
-------------------------
For performance reasons the HTTP/1.1 chunked transfer encoding is
used frequently to transfer variable length objects. This avoids
needing to produce large results in memory to compute the proper
content-length.
Note: you cannot rely on HTTP/1.1 being supported by an intermediate
proxy; you might have to handle HTTP/1.0, where the data is terminated
by connection close.
-hpa