lightmy.day

HTTP headers

Content-Length HTTP Header Meaning

Content-Length gives the body size in bytes.

Meaning

The sender is declaring how many bytes are in the message body.

Where it appears

Clients and servers include it when the body length is known before sending.

What to check

Check for mismatches between declared length and actual body, especially around proxies and uploads.

Example

Content-Length: 348

References

Related HTTP headers

Related HTTP methods

Related HTTP status codes