The valid characters are defined in RFC 7230 and RFC 3986什么意思
时间: 2024-06-18 07:03:23 浏览: 16
The valid characters in the context of HTTP requests and URIs are defined in two RFC documents: RFC 7230 and RFC 3986.
RFC 7230 defines the syntax and semantics of HTTP/1.1 messages, including the rules for constructing header fields and parsing message components. It specifies the allowed characters in HTTP header field values and the encoding format for non-ASCII characters.
RFC 3986 defines the syntax and semantics of URIs, including the rules for constructing and parsing URIs. It specifies the allowed characters in a URI and the encoding format for reserved characters and non-ASCII characters.
In summary, these two RFC documents define the set of valid characters that can be used in HTTP requests and URIs, and also provide guidelines for handling characters that are not included in this set.