Transfer-Encoding

Indicates encoding for transfer (e.g., chunked). Chunked allows streaming without Content-Length.

Both

Syntax

Transfer-Encoding: <encoding>

Example values

ValueExplanation
chunkedBody sent in chunks
gzip, chunkedCompressed and chunked

cURL usage

curl -N https://example.com/stream  # Chunked response

Common mistakes

Content-Length and chunked together; not supporting chunked for streaming.

Related headers

Tools

HTTP Header Viewer →