Metraipolis › HTTP clauses › rfc9112-s6.3-c4

RFC 9112 §6.3 — Message Body Length

HTTP/1.1 · status: INTERNET STANDARD · keyword: MUST · addressee: recipient

Official text

5. If a message is received without Transfer-Encoding and with an invalid Content-Length header field, then the message framing is invalid and the recipient MUST treat it as an unrecoverable error, unless the field value can be successfully parsed as a comma-separated list (Section 5.6.1 of [HTTP]), all values in the list are valid, and all values in the list are the same (in which case, the message is processed with that single value used as the Content-Length field value). If the unrecoverable error is in a request message, the server MUST respond with a 400 (Bad Request) status code and then close the connection. If it is in a response message received by a proxy, the proxy MUST close the connection to the server, discard the received response, and send a 502 (Bad Gateway) response to the client. If it is in a response message received by a user agent, the user agent MUST close the connection to the server and discard the received response.

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-2.5
Stable URL of this page
https://metraipolis.com/clausola/rfc9112-s6.3-c4

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-2.5; clause rfc9112-s6.3-c4: https://metraipolis.com/clausola/rfc9112-s6.3-c4
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-2.5},
  note = {Clause rfc9112-s6.3-c4; https://metraipolis.com/clausola/rfc9112-s6.3-c4}
}

Summary (ours, not RFC text)

This requirement concerns message body length in RFC 9112. Its recorded addressee is recipient; use the excerpt and official paragraph to determine the exact obligation.

Conditions

Exceptions

Related clauses