Metraipolis › HTTP clauses › rfc9112-s6.3-c6
RFC 9112 §6.3 — Message Body Length
HTTP/1.1 · status: INTERNET STANDARD · keyword: MUST · addressee: proxy
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-c6
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-c6: https://metraipolis.com/clausola/rfc9112-s6.3-c6
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-c6; https://metraipolis.com/clausola/rfc9112-s6.3-c6}
}Summary (ours, not RFC text)
This requirement concerns message body length in RFC 9112. Its recorded addressee is proxy; use the excerpt and official paragraph to determine the exact obligation.
Conditions
- If it is in a response message received by a proxy
Exceptions
None recorded.
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-c7 (same_section)
- rfc9112-s6.3-c8 (same_section)
- rfc9112-s6.3-c9 (same_section)
- rfc9112-s6.3-c10 (same_section)
- rfc9112-s6.3-c11 (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)