Metraipolis › HTTP clauses › rfc9112-s6.3-c11
RFC 9112 §6.3 — Message Body Length
HTTP/1.1 · status: INTERNET STANDARD · keyword: SHOULD · addressee: client
Official text
Unless a transfer coding other than chunked has been applied, a client that sends a request containing a message body SHOULD use a valid Content-Length header field if the message body length is known in advance, rather than the chunked transfer coding, since some existing services respond to chunked with a 411 (Length Required) status code even though they understand the chunked transfer coding. This is typically because such services are implemented via a gateway that requires a content length in advance of being called, and the server is unable or unwilling to buffer the entire request before processing.
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/rfc9112.html#section-6.3-6
- Stable URL of this page
https://metraipolis.com/clausola/rfc9112-s6.3-c11
How to cite
RFC 9112, HTTP/1.1, Section 6.3 (Message Body Length), https://www.rfc-editor.org/rfc/rfc9112.html#section-6.3-6; clause rfc9112-s6.3-c11: https://metraipolis.com/clausola/rfc9112-s6.3-c11
BibTeX
@misc{rfc9112s63,
title = {RFC 9112: HTTP/1.1, Section 6.3},
howpublished = {RFC Editor},
url = {https://www.rfc-editor.org/rfc/rfc9112.html#section-6.3-6},
note = {Clause rfc9112-s6.3-c11; https://metraipolis.com/clausola/rfc9112-s6.3-c11}
}Summary (ours, not RFC text)
This recommendation or permission concerns message body length in RFC 9112. Its recorded addressee is client; use the excerpt and official paragraph to determine the exact obligation.
Conditions
- if the message body length is known in advance, rather than the chunked transfer coding
Exceptions
- Unless a transfer coding other than chunked has been applied
Related clauses
- rfc9112-s6.3-c1 (same_section)
- rfc9112-s6.3-c2 (same_section)
- rfc9112-s6.3-c3 (same_section)
- rfc9112-s6.3-c4 (same_section)
- rfc9112-s6.3-c5 (same_section)
- rfc9112-s6.3-c6 (same_section)
- rfc9112-s6.3-c7 (same_section)
- rfc9112-s6.3-c8 (same_section)
- rfc9112-s6.3-c9 (same_section)
- rfc9112-s6.3-c10 (same_section)
- rfc9112-s6.3-c12 (same_section)
- rfc9112-s6.3-c13 (same_section)
- rfc9112-s6.3-c14 (same_section)
- rfc9112-s6.3-c15 (same_section)
- rfc9112-s6.2-c1 (reference)