Metraipolis › HTTP clauses › rfc9112-s2.2-c1

RFC 9112 §2.2 — Message Parsing

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

Official text

A recipient MUST parse an HTTP message as a sequence of octets in an encoding that is a superset of US-ASCII [USASCII]. Parsing an HTTP message as a stream of Unicode characters, without regard for the specific encoding, creates security vulnerabilities due to the varying ways that string processing libraries handle invalid multibyte character sequences that contain the octet LF (%x0A). String-based parsers can only be safely used within protocol elements after the element has been extracted from the message, such as within a header field line value after message parsing has delineated the individual field lines.

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-2.2-2
Stable URL of this page
https://metraipolis.com/clausola/rfc9112-s2.2-c1

How to cite

RFC 9112, HTTP/1.1, Section 2.2 (Message Parsing), https://www.rfc-editor.org/rfc/rfc9112.html#section-2.2-2; clause rfc9112-s2.2-c1: https://metraipolis.com/clausola/rfc9112-s2.2-c1
BibTeX
@misc{rfc9112s22,
  title = {RFC 9112: HTTP/1.1, Section 2.2},
  howpublished = {RFC Editor},
  url = {https://www.rfc-editor.org/rfc/rfc9112.html#section-2.2-2},
  note = {Clause rfc9112-s2.2-c1; https://metraipolis.com/clausola/rfc9112-s2.2-c1}
}

Summary (ours, not RFC text)

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

Conditions

None recorded.

Exceptions

None recorded.

Related clauses