Chunked encoding and content-length header

  1. No:

“Messages MUST NOT include both a Content-Length header field and a non-identity transfer-coding. If the message does include a non-identity transfer-coding, the Content-Length MUST be ignored.” (RFC 2616, Section 4.4)

  1. And no, you can use Content-Length and stream; the protocol doesn’t constrain how your implementation works.

Leave a Comment