Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
对于表单/多部分数据,我看到输入的格式为 =[2 到 6 个十六进制字符]。我想知道哪个 RFC 定义了它?我想将非文件表单数据编码为二进制字符流,以便 iconv 不会产生错误的输出。我认为这种行为类似于 formurl 编码的解码。
multipart/form-data基于RFC 2045和RFC 2046 ,在RFC 2388中正式化,并包含在 W3C 标准HTML40第 13.4 节和HTML5第 4.10.22.6 节中。您看到的编码是 MIME 的quoted-printable编码,在RFC 2045第 6.7 节中定义。编码在字节八位字节上quoted-printable运行,因此在一个字符之后总是包含 2 个十六进制字符=(“软”换行符除外,它由一个=字符后跟一个 CRLF 换行符组成)。
multipart/form-data
quoted-printable
=