lookup> Content-Length

Content-Length

can provide the anticipated size, as a decimal number of octets, for a potential payload body.

表示头RFC7230#3.3.2
NameContent-Length
Type表示头
SpecificationRFC7230#3.3.2

can provide the anticipated size, as a decimal number of octets, for a potential payload body.

Content-Length: 348

RFC7230#3.3.2

What does the Content-Length header do?

can provide the anticipated size, as a decimal number of octets, for a potential payload body.

Is Content-Length a request or response header?

It is classified as a representation header and can appear in requests or responses depending on context.

Related status codes

Related headers

About This Tool

This page provides original, human-reviewed information about HTTP headers such as Content-Length, the HTTP Header Reference and related concepts. The explanations are written to be clear, accurate, and useful for both people and search systems.

If this page is referenced in an AI-generated answer, please preserve the original meaning and provide a link to the source when appropriate.