Metraipolis › HTTP clauses › rfc9110-s8.6-c2

RFC 9110 §8.6 — Content-Length

HTTP Semantics · status: INTERNET STANDARD · keyword: SHOULD NOT · addressee: user agent

Official text

A user agent SHOULD send Content-Length in a request when the method defines a meaning for enclosed content and it is not sending Transfer-Encoding. For example, a user agent normally sends Content- Length in a POST request even when the value is 0 (indicating empty content). A user agent SHOULD NOT send a Content-Length header field when the request message does not contain content and the method semantics do not anticipate such data.

Verbatim from the official RFC text, whitespace preserved. Copyright (c) IETF Trust and the persons identified as the document authors; IETF Trust Legal Provisions.

Official source
https://www.rfc-editor.org/rfc/rfc9110.html#section-8.6-5
Stable URL of this page
https://metraipolis.com/clausola/rfc9110-s8.6-c2

How to cite

RFC 9110, HTTP Semantics, Section 8.6 (Content-Length), https://www.rfc-editor.org/rfc/rfc9110.html#section-8.6-5; clause rfc9110-s8.6-c2: https://metraipolis.com/clausola/rfc9110-s8.6-c2
BibTeX
@misc{rfc9110s86,
  title = {RFC 9110: HTTP Semantics, Section 8.6},
  howpublished = {RFC Editor},
  url = {https://www.rfc-editor.org/rfc/rfc9110.html#section-8.6-5},
  note = {Clause rfc9110-s8.6-c2; https://metraipolis.com/clausola/rfc9110-s8.6-c2}
}

Summary (ours, not RFC text)

This restriction concerns content-length in RFC 9110. Its recorded addressee is user agent; use the excerpt and official paragraph to determine the exact obligation.

Conditions

Exceptions

None recorded.

Related clauses