{"id":59,"date":"2018-11-17T14:45:42","date_gmt":"2018-11-17T06:45:42","guid":{"rendered":"https:\/\/chenqing.blog\/?p=59"},"modified":"2021-06-18T10:14:04","modified_gmt":"2021-06-18T02:14:04","slug":"%e3%80%90%e8%af%91%e3%80%91%e5%a6%82%e4%bd%95%e9%98%85%e8%af%bbrfc","status":"publish","type":"post","link":"https:\/\/www.chenqing.work\/?p=59","title":{"rendered":"\u8bd1 | \u5982\u4f55\u9605\u8bfbRFC"},"content":{"rendered":"\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\"><p>\u539f\u6587\uff1a <a href=\"https:\/\/web.archive.org\/web\/20180916071340\/https:\/\/www.mnot.net\/blog\/2018\/07\/31\/read_rfc\">How to Read an RFC<\/a><\/p><\/blockquote>\n\n\n\n<p>\u5728\u5b9e\u9a8c\u5ba4\u65f6\uff0c\u8bfb RFC \u5c31\u662f\u4e00\u4ef6\u4ee4\u4eba\u75db\u82e6\u7684\u4e8b\u60c5\u3002\u4eca\u5929\u642c\u8fd0\u4e86\u4e00\u4efd RFC \u67e5\u9605\u6307\u5357\uff0c\u6709\u52a9\u4e8e\u5927\u5bb6\u67e5\u9605\u7684\u65f6\u5019\u4fdd\u6301\u4e00\u4e2a\u826f\u597d\u7684\u5fc3\u60c5\u3002\u4f5c\u8005\u662f Charles Eames \uff0c\u4ece2000\u5e74\u8d77\u5c31\u6d3b\u8dc3\u4e8e IETF\uff0c\u73b0\u4e3a HTTP and QUIC Working Groups \u7684\u8054\u5e2d\u4e3b\u5e2d\u3002<\/p>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<p>\u752d\u7ba1\u597d\u574f\uff0c\u8bf7\u6c42\u8bc4\u8bba\uff08RFCs\uff09\u6b63\u662f\u4eca\u5929\u6211\u4eec\u5728\u4e92\u8054\u7f51\u4e0a\u5b9a\u4e49\u7e41\u591a\u534f\u8bae\u7684\u65b9\u5f0f\u3002\u4e00\u5f00\u59cb\u8fd9\u4e9b\u6587\u4ef6\u4f1a\u88ab\u8bd5\u56fe\u89e3\u8bfb\u5b83\u4eec\u7684\u5f00\u53d1\u8005\u5949\u4e3a\u572d\u7a1a\uff0c\u5f88\u5feb\u53c8\u56e0\u4e3a\u96be\u4ee5\u7406\u89e3\u800c\u88ab\u5f03\u4e4b\u4e0d\u987e\u3002\u8fd9\u79cd\u4e8b\u60c5\u4ee4\u4eba\u6cae\u4e27\uff0c\u66f4\u4e25\u91cd\u7684\u662f\u4f1a\u5bfc\u81f4\u4e92\u901a\u6027\u548c\u5b89\u5168\u4e0a\u7684\u95ee\u9898\u3002<\/p>\n\n\n\n<p>\u4f46\u662f\uff08<strong>\u6572\u9ed1\u677f<\/strong>\uff09\uff0c\u53ea\u8981\u4e86\u89e3\u5b83\u4eec\u662f\u5982\u4f55\u521b\u5efa\u548c\u53d1\u5e03\u7684\uff0c\u5c31\u4f1a\u66f4\u5bb9\u6613\u7406\u89e3\u5b83\u4eec\u3002\u4ee5\u4e0b\u662f\u6211\u4ece\u4e8b HTTP \u548c<a href=\"https:\/\/datatracker.ietf.org\/person\/Mark%20Nottingham\">\u5176\u4ed6<\/a>\u4e00\u4e9b\u5de5\u4f5c\u4e2d\u603b\u7ed3\u51fa\u6765\u7684\u7ecf\u9a8c\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u4ece\u54ea\u91cc\u5f00\u59cb<\/h2>\n\n\n\n<p>\u83b7\u53d6 RFC \u6587\u4ef6\u7684\u6807\u51c6\u5730\u65b9\u662f <a href=\"https:\/\/www.rfc-editor.org\/\">RFC Editor Web Site<\/a>\u3002\u4f46\u662f\uff0c\u6b63\u5982\u4e0b\u9762\u5c06\u4f1a\u770b\u5230\u7684\uff0c\u8fd9\u4e2a\u7f51\u7ad9\u4e0a\u7f3a\u5c11\u4e00\u90e8\u5206\u5173\u952e\u4fe1\u606f\uff0c\u6240\u4ee5\u5927\u591a\u6570\u4eba\u4f1a\u9009\u62e9\u4ece <a href=\"https:\/\/tools.ietf.org\/\">tools.ietf.org<\/a> \u83b7\u53d6\u3002<\/p>\n\n\n\n<p>\u56e0\u4e3a RFC \u6587\u4ef6\u5b9e\u5728\u6d69\u5982\u70df\u6d77\uff08\u76ee\u524d\u6570\u91cf\u5df2\u7ecf\u8d85\u8fc7\u4e869000\uff01\uff09\uff0c\u4ece\u4e2d\u627e\u5230\u6b63\u786e\u7684 RFC \u4e5f\u53d8\u6210\u4e00\u4ef6\u56f0\u96be\u7684\u4e8b\u3002\u663e\u7136\u4f60\u53ef\u4ee5\u501f\u52a9 Web \u641c\u7d22\u5f15\u64ce\u6765\u68c0\u7d22\uff0c\u540c\u65f6 RFC Editor \u7f51\u7ad9\u4e5f\u63d0\u4f9b\u4e86\u51fa\u8272\u7684\u7ad9\u5185\u641c\u7d22\u529f\u80fd\u3002<\/p>\n\n\n\n<p>\u53e6\u4e00\u4e2a\u9009\u62e9\u662f<s> <a href=\"https:\/\/everyrfc.org\/\">EveryRFC<\/a><\/s> <a href=\"https:\/\/rfc.fyi\/\" data-type=\"URL\" data-id=\"https:\/\/rfc.fyi\/\">rfc.fyi<\/a>\uff0c\u5728\u8fd9\u4e2a\u7f51\u7ad9\uff08\u4f5c\u8005\u641e\u7684\uff09\u5141\u8bb8\u901a\u8fc7 RFC \u540d\u79f0\u548c\u5173\u952e\u8bcd\u4e00\u8d77\u6765\u8fdb\u884c\u641c\u7d22\uff0c\u4ee5\u53ca\u901a\u8fc7\u6807\u7b7e\u8fdb\u884c\u63a2\u7d22\u3002<\/p>\n\n\n\n<p>\u6beb\u65e0\u7591\u95ee\uff0c\u7eaf\u6587\u672c\u5f62\u5f0f\u7684 RFCs \u6392\u7248\u4e11\u964b\u800c\u96be\u4ee5\u9605\u8bfb\uff0c\u4f46\u662f\u4e8b\u60c5\u6b63\u5728\u5f80\u597d\u7684\u65b9\u5411\u53d1\u5c55\u3002RFC Editor \u6b63\u5728\u5305\u88c5\u4e00\u79cd<a href=\"https:\/\/www.rfc-editor.org\/rse\/format-faq\/\">\u65b0\u7684 RFC \u683c\u5f0f<\/a>\uff0c\u65b0\u7684\u683c\u5f0f\u5c06\u4f1a\u6709\u66f4\u597d\u7684\u5448\u73b0\uff0c\u4e14\u5141\u8bb8\u8fdb\u884c\u5b9a\u5236\u3002\u540c\u65f6\uff0c\u5982\u679c\u60f3\u8981\u83b7\u53d6\u66f4\u591a\u6709\u7528\u7684 RFC\uff0c\u53ef\u4ee5\u4f7f\u7528\u9488\u5bf9\u7279\u5b9a\u8303\u56f4\u7684\u7b2c\u4e09\u65b9\u5206\u652f\u3002\u5982 <a href=\"https:\/\/greenbytes.de\/tech\/webdav\/\">greebytes<\/a>\uff0c\u7ef4\u62a4\u4e86\u548c WebDAV \u76f8\u5173\u7684 RFC\uff1b<a href=\"https:\/\/httpwg.org\/specs\/\">HTTP Working Group<\/a> \u7ef4\u62a4\u4e86\u548c HTTP \u76f8\u5173\u7684 RFC\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">RFC \u7684\u7c7b\u578b<\/h2>\n\n\n\n<p>\u6240\u6709\u7684 RFC \u5728\u9876\u90e8\u90fd\u6709\u4e00\u4e2a\u89c4\u8303\u7684\u6807\u8bc6\uff0c\u50cf\u8fd9\u6837<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Internet Engineering Task Force (IETF)                  R. Fielding, Ed.\nRequest for Comments: 7230                                         Adobe\nObsoletes: 2145, 2616                                    J. Reschke, Ed.\nUpdates: 2817, 2818                                           greenbytes\nCategory: Standards Track                                      June 2014\nISSN: 2070-1721<\/code><\/pre>\n\n\n\n<p>\u5de6\u4e0a\u89d2\u7684\u63cf\u8ff0 <code>Internet Engineering Task Force (IETF)<\/code> \uff0c\u610f\u5473\u7740\u8fd9\u662f IETF \u51fa\u4ea7\u7684\u6587\u6863\uff0c\u867d\u7136\u5f88\u5c11\u4eba\u77e5\u9053\uff0c\u4f46\u662f\u786e\u5b9e\u6709\u5176\u4ed6\u4e0d\u9700\u8981 IETF \u8fbe\u6210\u5171\u8bc6\u5c31\u53d1\u5e03 RFC \u7684\u65b9\u5f0f\uff0c\u6bd4\u5982 <a href=\"https:\/\/www.rfc-editor.org\/about\/independent\/\">independent stream<\/a>\u3002<\/p>\n\n\n\n<p>\u4e8b\u5b9e\u4e0a\uff0c\u6709\u5f88\u591a\u79cd\u6d41\u7a0b\u65b9\u5f0f\u53ef\u4f9b\u53d1\u5e03\u4e00\u4e2a\u6587\u6863\u3002<strong>\u4f46\u662f\u53ea\u6709 IETF \u6d41\u7a0b\u624d\u8868\u793a\u6574\u4e2a IETF \u7ec4\u7ec7\u5df2\u7ecf\u5ba1\u67e5\u8fc7\uff0c\u5e76\u5c31\u8be5\u534f\u8bae\u6807\u51c6\u8fbe\u6210\u4e86\u5171\u8bc6<\/strong>\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/upload-images.jianshu.io\/upload_images\/716099-dfe127e35113af82.png?imageMogr2\/auto-orient\/strip%7CimageView2\/2\/w\/1240\" alt=\"sample\"\/><\/figure>\n\n\n\n<p>\u65e7\u7684\u6587\u6863\uff08\u5927\u7ea6\u5c31\u662f RFC5705 \u4ee5\u524d\u7684\u90a3\u4e9b\uff09\u5728\u8fd9\u4e2a\u4f4d\u7f6e\u6807\u660e\u7684\u662f <code>Network Working Group<\/code>\uff0c\u56e0\u6b64\u4f60\u9700\u8981\u518d\u591a\u505a\u4e00\u70b9\u5de5\u4f5c\u4ee5\u5224\u65ad\u4ed6\u4eec\u662f\u5426\u4ee3\u8868\u4e86 IETF \u7684\u5171\u8bc6\u3002\u901a\u8fc7\u4e00\u5f00\u59cb\u7684<code>Status of this Memo<\/code>\u8fd9\u4e2a\u6bb5\u843d\uff0c\u6216\u8005 <a href=\"https:\/\/www.rfc-editor.org\/\">RFC Editor<\/a> \u7f51\u7ad9\u53ef\u4ee5\u5e2e\u52a9\u4f60\u8fdb\u884c\u5224\u65ad\u3002<br>\n<\/p>\n\n\n\n<p>\u63a5\u4e0b\u6765\u662f<code>Request for Comments<\/code>\u53f7\u3002<strong>\u5982\u679c\u8fd9\u91cc\u663e\u793a\u7684\u662f<code>Internet-Draft<\/code>\uff0c\u90a3\u4e48\u5b83\u8fd8\u4e0d\u662f\u4e00\u4e2a RFC<\/strong>\uff0c\u4ec5\u4ec5\u662f\u4e00\u4e2a\u63d0\u6848\uff0c\u4e00\u4e2a<a href=\"https:\/\/datatracker.ietf.org\/submit\/\">\u4efb\u4f55\u4eba\u90fd\u53ef\u4ee5\u5199<\/a>\u7684\u63d0\u6848\u3002\u4e00\u4e2a\u6587\u6863\u5f53\u524d\u4e3a\u4e00\u4e2a\u63d0\u6848\u5e76\u4e0d\u610f\u5473\u7740\u6c38\u8fdc\u4e0d\u4f1a\u88ab IETF \u91c7\u7eb3\u3002<\/p>\n\n\n\n<p><code>Category<\/code>\u4e3a\u8fd9\u51e0\u4e2a\u63cf\u8ff0\u4e4b\u4e00\uff1a<code>Standards Track<\/code>\u3001<code>Informational<\/code>\u3001<code>Experimental<\/code>\u3001<code>Best Current Practice<\/code>\u3002\u8fd9\u51e0\u4e2a\u7684\u533a\u522b\u6709\u4e9b\u65f6\u5019\u4e0d\u90a3\u4e48\u6e05\u6670\uff0c\u4f46\u53ea\u8981\u662f IETF \u51fa\u4ea7\u7684\uff0c\u5c31\u6709\u5408\u7406\u7684\u5ba1\u67e5\u91cf\u3002\u9700\u8981\u6ce8\u610f\u7684\u662f\uff0c<code>Informational<\/code>\u548c<code>Experimental<\/code>\u5e76\u4e0d\u662f\u6807\u51c6\uff0c\u5373\u4f7f\u662f\u53d1\u5e03\u7684\u65f6\u5019\u6709 IETF \u7684\u5171\u8bc6\u3002<\/p>\n\n\n\n<p>\u6700\u540e\uff0c<strong>\u4f5c\u8005<\/strong>\u88ab\u5217\u5728\u4e86\u6587\u6863\u5934\u90e8\u7684\u53f3\u4fa7\u3002\u548c\u5b66\u672f\u6587\u7ae0\u4e0d\u540c\uff0c\u8fd9\u91cc\u5e76\u6ca1\u6709\u5217\u51fa\u6240\u6709\u5bf9\u8be5\u6587\u6863\u4f5c\u51fa\u8d21\u732e\u7684\u4eba\uff0c\u8d21\u732e\u8005\u8fd9\u90e8\u5206\u5185\u5bb9\u901a\u5e38\u4f4d\u4e8e\u5e95\u90e8\u7684<code>Acknowledgmnets<\/code>\u3002\u5728 RFC \u8fd9\u91cc\uff0c\u201c\u4f5c\u8005\u201d\u5c31\u662f\u5b57\u9762\u4e0a\u7684\u610f\u601d\uff0c\u5c31\u662f\u8c01\u5199\u4e86\u8fd9\u4e2a\u6587\u6863\u3002\u4f60\u7ecf\u5e38\u4f1a\u770b\u5230\u4eba\u540d\u540e\u7f00<code>Ed.<\/code>\uff0c\u8fd9\u8868\u660e\u4ed6\u4eec\u4ec5\u4ec5\u662f\u7f16\u8f91\u8005\uff0c\u56e0\u4e3a\u8fd9\u4e2a\u6587\u6863\u65e9\u5c31\u5b58\u5728\u4e86\uff08\u6bd4\u5982\u4fee\u8ba2 RFC \u8fd9\u79cd\u573a\u666f\uff09\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u5b83\u662f\u6700\u65b0\u7684\u5417\uff1f<\/h2>\n\n\n\n<p>RFCs \u662f\u6587\u6863\u7684\u4e00\u7cfb\u5217\u5b58\u6863\uff0c\u4e0d\u80fd\u66f4\u6539\uff0c\u54ea\u6015\u6539\u7684\u662f\u4e00\u4e2a\u5355\u8bcd\u4e5f\u4e0d\u884c\uff08\u770b\u770b <a href=\"https:\/\/tools.ietf.org\/rfcdiff?url1=rfc7158&amp;url2=rfc7159\">RFC7158 \u548c RFC7159\u7684\u533a\u522b<\/a>\uff0c\u4ec5\u4ec5\u662f\u6539\u4e86\u4e00\u4e2a\u5e74\u4efd\u800c\u5df2\uff09\u3002<\/p>\n\n\n\n<p>\u7ed3\u679c\u5c31\u662f\uff0c\u4f60\u5fc5\u987b\u8981\u77e5\u9053\u81ea\u5df1\u624b\u5934\u7684\u662f\u6b63\u786e\u7684\u6587\u6863\u3002\u6587\u6863\u5934\u90e8\u4e00\u4e9b\u5143\u6570\u636e\u80fd\u591f\u5e2e\u5230\u4f60\u3002<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li><code>Obsoletes<\/code>\u5217\u51fa\u4e86\u88ab\u672c\u6587\u6863\u5b8c\u5168\u66ff\u4ee3\u7684 RFCs\uff0c\u4f60\u5e94\u8be5\u770b\u8fd9\u4e2a\uff0c\u800c\u4e0d\u662f\u88ab\u66ff\u4ee3\u7684\u65e7\u6587\u6863\u3002\u6ce8\u610f\uff0c\u5f53\u65b0\u7248\u672c\u7684\u534f\u8bae\u6807\u51c6\u51fa\u7089\u540e\uff0c\u5e76\u4e0d\u4ee3\u8868\u65e7\u7248\u672c\u7684\u5c31\u5f97\u5e9f\u5f03\u3002\u6bd4\u5982\u53d1\u5e03\u4e86 HTTP\/2 \u534f\u8bae\u5e76\u4e0d\u4f1a\u5e9f\u5f03 HTTP\/1.1 \u534f\u8bae\uff0c\u56e0\u4e3a\u5b9e\u73b0\u65e7\u7684\u534f\u8bae\u4ecd\u7136\u662f\u5408\u6cd5\u548c\u6709\u5fc5\u8981\u7684\u3002\u4f46\u662f\uff0cRFC7230 \u5c31\u66ff\u4ee3\u4e86 RFC2616\uff0c\u56e0\u4e3a\u90fd\u662f\u5bf9 HTTP\/1.1 \u7684\u5b9a\u4e49\u3002<\/li><li><code>Updates<\/code>\u5217\u51fa\u4e86\u672c\u6587\u6863\u5bf9\u5176\u5185\u5bb9\u6709\u5b9e\u8d28\u4fee\u6539\u7684 RFCs\uff0c\u6362\u53e5\u8bdd\u8bf4\uff0c\u5982\u679c\u4f60\u9605\u8bfb\u4e86\u8fd9\u4e9b RFCs\uff0c\u90a3\u4e48\u6700\u597d\u4e5f\u9605\u8bfb\u4e0b\u672c\u6587\u6863\u3002<\/li><\/ul>\n\n\n\n<p>\u4e0d\u5e78\u7684\u662f\uff0cASCII \u683c\u5f0f\u7684\u6587\u672c\u6587\u6863\uff08\u6bd4\u5982\u5728 RFC Editor \u4e0a\u7684\uff09\u6ca1\u6709\u544a\u8bc9\u4f60\uff0c\u81ea\u5df1\u7684\u5185\u5bb9\u88ab\u54ea\u4e9b\u6587\u6863\u66f4\u65b0\uff0c\u6216\u8005\u88ab\u54ea\u4e9b\u6587\u6863\u6240\u5e9f\u5f03\u3002\u8fd9\u4f7f\u5f97\u7edd\u5927\u591a\u6570\u4eba\u9009\u62e9\u4f7f\u7528 tools.ietf.org \u4e0a\u7684 RFC \u5206\u652f\uff0c\u8be5\u5206\u652f\u6070\u597d\u5bf9\u8fd9\u90e8\u5206\u5185\u5bb9\u6709<a href=\"https:\/\/tools.ietf.org\/html\/rfc2616\">\u5f88\u597d\u7684\u5c55\u793a<\/a>\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&#91;Docs] &#91;txt|pdf] &#91;draft-ietf-http...] &#91;Tracker] &#91;Diff1] &#91;Diff2] &#91;Errata]\n\nObsoleted by: 7230, 7231, 7232, 7233, 7234, 7235          DRAFT STANDARD\nUpdated by: 2817, 5785, 6266, 6585                          Errata Exist<\/code><\/pre>\n\n\n\n<p>\u9875\u9762\u4e0a\u6bcf\u4e00\u4e2a\u53f7\u7801\u90fd\u662f\u4e00\u4e2a\u94fe\u63a5\uff0c\u4f60\u53ef\u4ee5\u65b9\u4fbf\u5730\u627e\u5230\u6700\u65b0\u7684\u90a3\u4efd\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/upload-images.jianshu.io\/upload_images\/716099-773bd166f9421001.png?imageMogr2\/auto-orient\/strip%7CimageView2\/2\/w\/1240\" alt=\"Errata\"\/><\/figure>\n\n\n\n<p>\u4f46\u5373\u4fbf\u6700\u65b0\u7684\u6587\u6863\u901a\u5e38\u4e5f\u8fd8\u5b58\u5728\u95ee\u9898\u3002\u5728\u9875\u9762\u7684\u9876\u90e8\uff0c\u53f3\u4fa7\u53ef\u4ee5\u770b\u5230\u4e00\u4e2a\u8b66\u544a\u4fe1\u606f<code>Errata Exist<\/code>\uff0c\u4f60\u53ef\u4ee5\u5230\u6700\u9876\u90e8\u7684<code>Errata<\/code>\u53bb\u8bbf\u95ee\u8fd9\u4e9b\u4fe1\u606f\u3002 <br>\n<\/p>\n\n\n\n<p><code>Errata\uff08\u52d8\u8bef\u8868\uff09<\/code>\u662f\u5bf9\u6587\u6863\u7684\u4fee\u6b63\u548c\u8bf4\u660e\uff0c\u53ea\u662f\u5e76\u4e0d\u8db3\u4ee5\u5f62\u6210\u4e00\u4e2a\u65b0\u7684 RFC\u3002\u6709\u4e9b\u65f6\u5019\uff0c\u5b83\u4eec\u5bf9\u4e8e\u534f\u8bae\u7684\u5b9e\u73b0\u6709\u91cd\u8981\u7684\u5f71\u54cd\uff08\u6bd4\u5982\uff0c\u6807\u51c6\u4e2d\u7684\u4e00\u4e2abug\u5bfc\u81f4\u4e86\u91cd\u5927\u7684\u8bef\u89e3\uff09\uff0c\u6240\u4ee5\u503c\u5f97\u8bfb\u4e00\u4e0b\u3002<\/p>\n\n\n\n<p>\u4f8b\u5982 <a href=\"https:\/\/www.rfc-editor.org\/errata_search.php?rfc=7230\">RFC7230 \u7684 errata<\/a>\u3002\u5728\u8bfb errata \u7684\u65f6\u5019\uff0c\u4e5f\u8981\u7559\u5fc3\u5b83\u4eec\u7684\u72b6\u6001\uff0c\u8bb8\u591a errata \u5e76\u6ca1\u6709\u88ab\u63a5\u53d7\uff0c\u56e0\u4e3a\u5b83\u4eec\u53ea\u662f\u5bf9\u6807\u51c6\u7684\u8bef\u8bfb\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u7406\u89e3\u4e0a\u4e0b\u6587<\/h2>\n\n\n\n<p>\u4e00\u4e2a\u6bd4\u4f60\u9884\u60f3\u7684\u66f4\u666e\u904d\u7684\u73b0\u8c61\u662f\uff1a\u5f00\u53d1\u8005\u9605\u8bfb\u4e86 RFC \u7684\u63cf\u8ff0\uff0c\u6839\u636e\u4ed6\u4eec\u770b\u5230\u7684\u7740\u624b\u5b9e\u73b0\uff0c\u6700\u7ec8\u5b8c\u6210\u7684\u5b9e\u7269\u5374\u548c RFC \u4f5c\u8005\u60f3\u8868\u8fbe\u7684\u610f\u601d\u76f8\u6096\u3002<\/p>\n\n\n\n<p>\u8fd9\u662f\u56e0\u4e3a\u5728\u9605\u8bfb\u8005\u4f1a\u622a\u53d6\u6587\u6863\u90e8\u5206\u6765\u9605\u8bfb\u7684\u60c5\u51b5\u4e0b\uff0c\u60f3\u8981\u627e\u5230\u4e00\u79cd\u4fdd\u8bc1\u4e0d\u4f1a\u51fa\u73b0\u8bef\u89e3\u7684\u5199\u4f5c\u65b9\u5f0f\u662f\u6781\u7aef\u56f0\u96be\u7684\uff08\u6bd4\u5982\u5bf9\u67d0\u4e9b\u795e\u5723\u7ecf\u5178\u7684\u8bef\u8bfb\uff09\u3002<\/p>\n\n\n\n<p>\u7ed3\u679c\u5c31\u662f\uff0c\u8bfb RFC \u4e0d\u4ec5\u8981\u9605\u8bfb\u76f4\u63a5\u76f8\u5173\u7684\u90e8\u5206\uff0c\u8fd8\u8981\u9605\u8bfb\u95f4\u63a5\u76f8\u5173\u7684\u4e00\u5c0f\u90e8\u5206\uff0c\u4e0d\u7ba1\u662f\u5728\u540c\u4e00\u4efd\u6807\u51c6\u6587\u6863\uff0c\u6216\u5728\u5176\u4ed6\u6587\u6863\u4e2d\u3002\u7d27\u8981\u5173\u5934\uff0c\u5982\u679c\u4f60\u65e0\u6cd5\u901a\u8bfb\u6587\u6863\uff0c\u90a3\u4e48\u9605\u8bfb\u6240\u6709\u53ef\u80fd\u76f8\u5173\u7684\u90e8\u5206\u4e5f\u8db3\u591f\u4e86\u3002<\/p>\n\n\n\n<p>\u4f8b\u5982\uff0c<a href=\"https:\/\/httpwg.org\/specs\/rfc7230.html#http.message\">\u89c4\u5b9a<\/a> HTTP \u5934\u90e8\u7531 CRLF \u5206\u9694\uff0c\u4f46\u662f\u5982\u679c\u4f60\u8df3\u8fc7\u4e86\u8fd9\u90e8\u5206\uff0c\u5c06\u770b\u5230<code>\u63a5\u6536\u8005\u5c06\u5355\u4e2a\u7684 LF \u8bc6\u522b\u4e3a\u884c\u7ec8\u6b62\u7b26\uff0c\u5e76\u5ffd\u7565\u6240\u6709\u524d\u9762\u7684 CR<\/code>\u3002\u5bf9\u4e0d\uff1f<\/p>\n\n\n\n<p>\u540c\u6837\u91cd\u8981\uff0c\u9700\u8981\u63d0\u8bf7\u5927\u5bb6\u6ce8\u610f\u7684\u662f\u8bb8\u591a\u534f\u8bae\u5728 <a href=\"https:\/\/www.iana.org\/assignments\/http-methods\/http-methods.xhtml\">IANA registries<\/a>\u4e0a\u5efa\u7acb\u4e86\u6761\u76ee\uff0c\u4ee5\u7ba1\u7406\u5b83\u4eec\u7684\u6269\u5c55\u70b9\u3002\u8fd9\u4e9b\u6269\u5c55\u70b9\uff0c\u800c\u975e\u6807\u51c6\u6587\u6863\uff0c\u624d\u662f\u4e8b\u5b9e\u7684\u6e90\u6cc9\u3002\u4f8b\u5982 HTTP \u65b9\u6cd5\u7684\u5178\u8303\u5217\u8868\u5c31\u5728<a href=\"https:\/\/www.iana.org\/assignments\/http-methods\/http-methods.xhtml\">\u8fd9\u91cc<\/a>\uff0c\u800c\u4e0d\u5728\u4efb\u4f55\u7684 HTTP \u6807\u51c6\u6587\u6863\u4e2d\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u89e3\u8bfb\u8981\u6c42<\/h2>\n\n\n\n<p>\u51e0\u4e4e\u6240\u6709\u7684 RFCs \u5728\u9876\u90e8\u90fd\u6709\u7c7b\u4f3c\u4e0b\u9762\u8fd9\u6837\u7684\u4e00\u6bb5\u6587\u5b57\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>The key words \"MUST\", \"MUST NOT\", \"REQUIRED\", \"SHALL\", \"SHALL NOT\",\n\"SHOULD\", \"SHOULD NOT\", \"RECOMMENDED\", \"NOT RECOMMENDED\", \"MAY\", and\n\"OPTIONAL\" in this document are to be interpreted as described in\nBCP 14 &#91;RFC2119] &#91;RFC8174] when, and only when, they appear in all\ncapitals, as shown here.<\/code><\/pre>\n\n\n\n<p><a href=\"https:\/\/tools.ietf.org\/html\/rfc2119\">RFC2119<\/a>\u7684\u8fd9\u4e9b\u5173\u952e\u8bcd\u5e2e\u52a9\u5b9a\u4e49\u4e86\u4e92\u901a\u6027\uff0c\u4f46\u6709\u65f6\u4e5f\u4f1a\u8ba9\u5f00\u53d1\u8005\u7cca\u6d82\u3002\u50cf\u8fd9\u6837\u7684\u63cf\u8ff0\u5728\u6807\u51c6\u4e2d\u662f\u5e38\u89c1\u7684\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>The Foo message MUST NOT contain a Bar header.<\/code><\/pre>\n\n\n\n<p>\u8fd9\u4e2a\u8981\u6c42\u653e\u7f6e\u5728\u534f\u8bae\u5355\u5143\uff08Foo message\uff09\u524d\u9762\u3002\u5982\u679c\u4f60\u6b63\u5728\u53d1\u9001\u4e00\u4e2a Foo message\uff0c\u663e\u7136\u4e0d\u80fd\u5305\u542b Bar header\uff1b\u5982\u679c\u5305\u542b\u4e86 Bar header\uff0c\u90a3\u5c31\u662f\u4e00\u4e2a\u4e0d\u7b26\u5408\u89c4\u8303\u7684\u6d88\u606f\u3002<\/p>\n\n\n\n<p>\u4f46\u662f\u8fd9\u6761\u8981\u6c42\u5bf9\u4e8e\u6d88\u606f\u7684\u63a5\u6536\u8005\u6765\u8bf4\u5c31\u4e0d\u90a3\u4e48\u6e05\u6670\u4e86\uff0c\u5982\u679c\u4f60\u6536\u5230\u4e00\u4e2a\u5e26\u6709 Bar header \u7684\u6d88\u606f\uff0c\u548b\u6574\uff1f<\/p>\n\n\n\n<p>\u90e8\u5206\u4eba\u4f1a\u76f4\u63a5\u62d2\u7edd\u8be5\u6d88\u606f\uff0c\u5373\u4f7f\u6807\u51c6\u5e76\u6ca1\u6709\u89c4\u5b9a\u8981\u8fd9\u4e48\u505a\u3002\u5176\u4ed6\u4eba\u4ecd\u4f1a\u5904\u7406\u8be5\u6d88\u606f\uff0c\u4f46\u662f\u4f1a\u5254\u9664 Bar header\uff0c\u6216\u8005\u5ffd\u7565\u5b83\uff0c\u5373\u4f7f\u6807\u51c6\u660e\u786e\u89c4\u5b9a\u6240\u6709\u7684\u6d88\u606f\u5934\u90fd\u9700\u8981\u88ab\u5904\u7406\u3002<\/p>\n\n\n\n<p>\u8fd9\u4e9b\u5dee\u5f02\uff0c\u5728\u65e0\u610f\u4e2d\u5bfc\u81f4\u4e86\u4e92\u901a\u6027\u95ee\u9898\u3002\u6b63\u786e\u7684\u505a\u6cd5\u662f\u9075\u5faa\u6b63\u5e38\u7684\u5934\u90e8\u5904\u7406\u8fc7\u7a0b\uff0c\u9664\u975e\u6807\u51c6\u4e2d\u8981\u6c42\u4e0d\u8981\u90a3\u4e48\u505a\u3002<\/p>\n\n\n\n<p>\u8fd9\u662f\u56e0\u4e3a\u901a\u5e38\u610f\u4e49\u4e0a\uff0c\u6807\u51c6\u53ea\u662f\u516c\u5f00\u5730\u5b9a\u4e49\u4e86\u4e00\u4e9b\u884c\u4e3a\uff0c\u6362\u53e5\u8bdd\u8bf4\uff0c\u6cd5\u65e0\u7981\u6b62\u5373\u53ef\u4e3a\u3002\u56e0\u6b64\uff0c\u8fc7\u5ea6\u89e3\u8bfb\u534f\u8bae\u6807\u51c6\u4f1a\u5728\u65e0\u610f\u4e2d\u9020\u6210\u7834\u574f\uff0c\u56e0\u4e3a\u4f60\u9009\u62e9\u8fd9\u6837\u505a\u7684\u540c\u65f6\u8fd8\u6709\u5176\u4ed6\u4eba\u9009\u62e9\u90a3\u6837\u505a\u3002<\/p>\n\n\n\n<p>\u7406\u60f3\u60c5\u51b5\u4e0b\uff0c\u6807\u51c6\u5e94\u8be5\u4ece\u5904\u7406\u6d88\u606f\u65b9\u7684\u884c\u4e3a\u7684\u89d2\u5ea6\u6765\u5b9a\u4e49\uff0c\u5c31\u50cf\u8fd9\u6837\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Senders of the Foo message MUST NOT include a Bar header. Recipients\nof a Foo message that includes a Bar header MUST ignore the Bar header,\nbut MUST NOT remove it.<\/code><\/pre>\n\n\n\n<p>\u9664\u4e86\u8fd9\u4e9b\uff0c\u6700\u597d\u5728\u6807\u51c6\u4e2d\u627e\u627e\u6709\u5173\u9519\u8bef\u5904\u7406\u7684\u901a\u7528\u5efa\u8bae\uff08\u6bd4\u5982 HTTP \u7684 <a href=\"https:\/\/httpwg.org\/specs\/rfc7230.html#conformance\">Conformance and Error Handling<\/a> \u90e8\u5206\uff09<\/p>\n\n\n\n<p>\u540c\u6837\u5730\uff0c\u8bf7\u8bb0\u4f4f\u8fd9\u4e9b\u8981\u6c42\u7684\u76ee\u6807\u3002\u5927\u90e8\u5206\u7684\u6807\u51c6\u6587\u6863\u6709\u4e00\u5957\u9ad8\u5ea6\u53d1\u5c55\u7684\u672f\u8bed\uff0c\u7528\u4e8e\u533a\u5206\u6807\u51c6\u6587\u6863\u4e2d\u7684\u4e0d\u540c\u89d2\u8272\u3002<\/p>\n\n\n\n<p>\u6bd4\u5982 HTTP \u6709<a href=\"https:\/\/httpwg.org\/specs\/rfc7230.html#intermediaries\">\u4ee3\u7406<\/a>\uff0c\u8fd9\u662f\u4e00\u4e2a\u4e2d\u4ecb\uff0c\u6709\u5ba2\u6237\u7aef\u6709\u670d\u52a1\u5668\u7aef\uff08\u4f46\u4e0d\u662f User-Agent \u6216\u539f\u59cb\u670d\u52a1\u5668\uff09\u3002\u9700\u8981\u6ce8\u610f\u6240\u6709\u8fd9\u4e9b\u89d2\u8272\u7684\u8981\u6c42\u3002<\/p>\n\n\n\n<p>\u540c\u6837\u5730\uff0c\u4f9d\u8d56\u4e8e\u6807\u51c6\u6240\u9488\u5bf9\u7684\u573a\u666f\uff0c\u5728 HTTP \u7684\u4e00\u4e9b\u8981\u6c42\u4e2d\uff0c\u533a\u5206\u201c\u751f\u6210\u201d\u6d88\u606f\u548c\u4ec5\u4ec5\u201c\u53d1\u9001\u201d\u6d88\u606f\u4e24\u4e2a\u884c\u4e3a\u3002\u7559\u610f\u8fd9\u79cd\u7c7b\u578b\u7684\u672f\u8bed\u80fd\u591f\u8282\u7701\u4f60\u778e\u731c\u7684\u529f\u592b\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">SHOULD<\/h2>\n\n\n\n<p>\u662f\u7684\uff0cSHOULD \u6709\u81ea\u5df1\u7684\u6bb5\u843d\u3002\u8fd9\u4e2a\u626d\u626d\u634f\u634f\u7684\u672f\u8bed\u4f20\u67d3\u4e86\u5f88\u591a RFC\uff0c\u9664\u975e\u4e0b\u529f\u592b\u53bb\u6839\u9664\u3002RFC2119 \u662f\u8fd9\u6837\u63cf\u8ff0\u5b83\u7684\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>SHOULD  This word, or the adjective \"RECOMMENDED\", mean that there\n        may exist valid reasons in particular circumstances to ignore a\n        particular item, but the full implications must be understood and\n        carefully weighed before choosing a different course.<\/code><\/pre>\n\n\n\n<p>\u5b9e\u9645\u4e0a\uff0c\u4f5c\u8005\u901a\u5e38\u7528 SHOULD \u548c SHOULD NOT \u8868\u8fbe\uff1a\u201c\u6211\u4eec\u4e50\u610f\u4f60\u8fd9\u6837\u505a\uff0c\u4f46\u662f\u6211\u4eec\u4e0d\u80fd\u603b\u662f\u8981\u6c42\u4f60\u8fd9\u6837\u505a\u201d\u3002<\/p>\n\n\n\n<p>\u4f8b\u5982\uff0c\u5728 <a href=\"https:\/\/httpwg.org\/specs\/rfc7231.html#method.overview\">HTTP \u65b9\u6cd5\u7684\u6982\u89c8\u90e8\u5206<\/a>\uff0c\u6211\u4eec\u770b\u5230\u8fd9\u6837\u7684\u63cf\u8ff0\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>When a request method is received that is unrecognized or not\nimplemented by an origin server, the origin server SHOULD respond\nwith the 501 (Not Implemented) status code. When a request method\nis received that is known by an origin server but not allowed for\nthe target resource, the origin server SHOULD respond with the 405\n(Method Not Allowed) status code.<\/code><\/pre>\n\n\n\n<p>\u8fd9\u4e9b SHOULDs \u4e0d\u662f MUSTs\uff0c\u56e0\u4e3a\u670d\u52a1\u5668\u53ef\u4ee5\u5408\u7406\u5730\u51b3\u5b9a\u91c7\u7528\u53e6\u4e00\u79cd\u884c\u4e3a\u3002\u5982\u679c\u670d\u52a1\u5668\u8ba4\u4e3a\u4e00\u4e2a\u8bf7\u6c42\u6765\u81ea\u4e8e\u4e00\u4e2a\u653b\u51fb\u8005\uff0c\u5c31\u53ef\u4ee5\u76f4\u63a5\u65ad\u5f00\u8fde\u63a5\uff0c\u6216\u8005\u88ab\u8bf7\u6c42\u7684\u8d44\u6e90\u8981\u6c42 HTTP \u8ba4\u8bc1\uff0c\u5c31\u53ef\u4ee5\u5728\u8fd4\u56de405\u4e4b\u524d\u8fd4\u56de\u4e00\u4e2a401\u9519\u8bef\uff08\u6ca1\u6709\u7ecf\u8fc7\u8ba4\u8bc1\uff09\u3002<\/p>\n\n\n\n<p>SHOULD \u5e76\u4e0d\u610f\u5473\u7740\u670d\u52a1\u5668\u5c31\u53ef\u4ee5\u5ffd\u7565\u6240\u6709\u7684\u8981\u6c42\uff0c\u5c31\u56e0\u4e3a SHOULD \u770b\u8d77\u6765\u65e0\u9700\u88ab\u5c0a\u91cd\u3002<\/p>\n\n\n\n<p>\u6709\u4e9b\u65f6\u5019\uff0c\u6211\u4eec<a href=\"https:\/\/httpwg.org\/specs\/rfc7231.html#multipart.types\">\u770b\u5230<\/a> SHOULD \u662f\u8fd9\u6837\u7684\u5f62\u5f0f\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>A sender that generates a message containing a payload body SHOULD\ngenerate a Content-Type header field in that message unless the\nintended media type of the enclosed representation is unknown to\nthe sender.<\/code><\/pre>\n\n\n\n<p>\u6ce8\u610f\u201cunless\u201d\u8fd9\u4e2a\u8bcd\uff0c\u5b83\u89c4\u5b9a\u4e86 SHOULD \u5141\u8bb8\u7684\u7279\u6b8a\u60c5\u5f62\u3002\u6709\u4e89\u8bae\u7684\u662f\uff0c\u8fd9\u91cc\u5e94\u8be5\u88ab\u5b9a\u4e49\u4e3a MUST\uff0c\u56e0\u4e3a unless \u6761\u6b3e\u4ecd\u7136\u4f1a\u751f\u6548\uff0c\u4f46\u8fd9\u79cd\u5199\u6cd5\u98ce\u683c\u5728\u6807\u51c6\u4e2d\u6709\u4e9b\u666e\u904d\u3002<\/p>\n\n\n\n<h1 class=\"wp-block-heading\">\u9605\u8bfb\u6837\u4f8b<\/h1>\n\n\n\n<p>\u53e6\u4e00\u4e2a\u666e\u904d\u7684\u9677\u9631\u662f\u8349\u8349\u6d4f\u89c8\u6807\u51c6\uff0c\u627e\u5230\u5176\u4e2d\u7684\u6837\u4f8b\uff0c\u7136\u540e\u7167\u7740\u5b9e\u73b0\u3002<\/p>\n\n\n\n<p>\u4e0d\u5e78\u7684\u662f\uff0c\u6837\u4f8b\u662f\u6700\u5c11\u5f97\u5230\u4f5c\u8005\u5173\u6ce8\u7684\u90e8\u5206\uff0c\u56e0\u4e3a\u53ea\u8981\u534f\u8bae\u6709\u4e00\u70b9\u53d8\u52a8\u5c31\u9700\u8981\u66f4\u65b0\u8fd9\u4e9b\u6837\u4f8b\u3002<\/p>\n\n\n\n<p>\u7ed3\u679c\u5c31\u662f\uff0c\u6837\u4f8b\u662f\u6574\u4e2a\u6807\u51c6\u6587\u6863\u4e2d\u6700\u4e0d\u9760\u8c31\u7684\u90e8\u5206\u3002\u8bda\u7136\uff0c\u4f5c\u8005\u5e94\u8be5\u5728\u53d1\u5e03\u4e4b\u524d\u518d\u6b21\u5f7b\u5e95\u5730\u68c0\u67e5\u8fd9\u4e9b\u6837\u4f8b\uff0c\u4f46\u662f\u603b\u4f1a\u6709\u9519\u8bef\u6210\u4e3a\u6f0f\u7f51\u4e4b\u9c7c\u3002<\/p>\n\n\n\n<p>\u800c\u4e14\uff0c\u4e00\u4e2a\u5b8c\u7f8e\u7684\u6848\u4f8b\u4e5f\u8bb8\u5e76\u4e0d\u662f\u4e3a\u4e86\u9610\u91ca\u4f60\u6b63\u5728\u67e5\u627e\u7684\u6807\u51c6\u4e2d\u7684\u90a3\u90e8\u5206\u5185\u5bb9\u3002\u5b83\u4eec\u4f1a\u51fa\u4e8e\u7b80\u6d01\u7684\u539f\u56e0\u88ab\u622a\u65ad\uff0c\u4e5f\u53ef\u80fd\u9700\u8981\u989d\u5916\u7684\u4e00\u6b65\u89e3\u7801\u624d\u53ef\u8bfb\u3002<\/p>\n\n\n\n<p>\u5c31\u7b97\u8981\u82b1\u53bb\u66f4\u591a\u7684\u65f6\u95f4\uff0c\u66f4\u597d\u7684\u505a\u6cd5\u4e5f\u5e94\u8be5\u662f\u53bb\u8bfb\u771f\u6b63\u7684\u6587\u672c\u5185\u5bb9\uff0c\u6bd5\u7adf\u6837\u4f8b\u4e0d\u80fd\u5b8c\u5168\u4ee3\u8868\u6807\u51c6\u6587\u6863\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">On ABNF<\/h2>\n\n\n\n<p><a href=\"https:\/\/tools.ietf.org\/html\/rfc5234\">Augmented BNF<\/a> \u901a\u5e38\u88ab\u7528\u4e8e\u5b9a\u4e49\u534f\u8bae\u5355\u5143\u3002\u5982\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>FooHeader = 1#foo\nfoo       = 1*9DIGIT &#91; \";\" \"bar\" ]<\/code><\/pre>\n\n\n\n<p>\u4e00\u65e6\u4f60\u4e60\u60ef\u4e86\uff0c\u4f1a\u53d1\u73b0 ABNF \u63d0\u4f9b\u4e86\u4e00\u4e2a\u6613\u4e8e\u7406\u89e3\u7684\u6846\u67b6\u53bb\u63cf\u8ff0\u534f\u8bae\u7684\u4e00\u4e9b\u5143\u7d20\u662f\u4ec0\u4e48\u6837\u7684\u3002<\/p>\n\n\n\n<p>\u4f46\u662f\uff0cABNF \u662f\u201c\u8d1f\u6709\u91ce\u5fc3\u7684\u201d\u3002\u5b83\u5efa\u7acb\u4e86\u4e00\u79cd\u7406\u60f3\u7684\u6d88\u606f\u683c\u5f0f\uff0c\u5e76\u8981\u6c42\u4f60\u751f\u6210\u7684\u6d88\u606f\u5fc5\u987b\u8981\u5339\u914d\u5b83\u3002\u5b83\u5e76\u6ca1\u6709\u89c4\u5b9a\u5982\u679c\u63a5\u6536\u5230\u4e0d\u5339\u914d\u5b83\u683c\u5f0f\u7684\u6d88\u606f\u5e94\u8be5\u600e\u4e48\u5904\u7406\u3002\u5b9e\u9645\u4e0a\uff0c\u8bb8\u591a\u89c4\u8303\u90fd\u6ca1\u6709\u8bf4\u660e ABNF \u548c\u5904\u7406\u8981\u6c42\u4e4b\u95f4\u7684\u5173\u7cfb\u3002<\/p>\n\n\n\n<p>\u5982\u679c\u4f60\u5c1d\u8bd5\u4e25\u683c\u9075\u5b88\u5b83\u4eec\u7684 ABNF \u683c\u5f0f\uff0c\u5927\u591a\u6570\u534f\u8bae\u4f1a\u53d1\u751f\u4e25\u91cd\u7684\u95ee\u9898\uff0c\u5c0f\u90e8\u5206\u6b63\u5e38\u3002\u5728\u4e0a\u9762\u7684\u4f8b\u5b50\u4e2d\uff0c\u7a7a\u683c\u4e0d\u5141\u8bb8\u51fa\u73b0\u5728\u5192\u53f7\u7684\u5468\u56f4\uff0c\u4f46\u662f\u4f60\u5b8c\u5168\u53ef\u4ee5\u8d4c\u6709\u4e9b\u4eba\u4f1a\u8fd9\u6837\u505a\uff0c\u7136\u540e\u4e00\u4e9b\u5b9e\u73b0\u4e5f\u540c\u6837\u4f1a\u63a5\u53d7\u5b83\u3002<\/p>\n\n\n\n<p>\u6240\u4ee5\uff0c\u786e\u8ba4\u4f60\u8bfb\u5b8c\u4e86 ABNF \u9644\u8fd1\u7684\u9644\u52a0\u8981\u6c42\u548c\u4e0a\u4e0b\u6587\uff0c\u5e76\u610f\u8bc6\u5230\u5982\u679c\u6ca1\u6709\u76f4\u63a5\u8981\u6c42\uff0c\u5c31\u9700\u8981\u8c03\u6574\u89e3\u6790\uff0c\u4f7f\u5f97\u63a5\u6536\u7684\u8303\u56f4\u6bd4 ABNF \u8981\u6c42\u7684\u66f4\u5927\u3002<\/p>\n\n\n\n<p>\u4e00\u4e9b\u89c4\u8303\u5f00\u59cb\u8ba4\u8bc6\u5230 ABNF \u7684\u96c4\u5fc3\u58ee\u5fd7\uff0c\u660e\u786e\u5b9a\u4e49\u4e86\u5305\u542b\u9519\u8bef\u5904\u7406\u7684\u89e3\u6790\u7b97\u6cd5\u3002\u5f53\u5b9a\u4e49\u660e\u786e\u4e86\uff0c\u5c31\u52a1\u5fc5\u4e25\u683c\u51c6\u5b88\uff0c\u4ee5\u4fdd\u969c\u4e92\u64cd\u4f5c\u6027\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u5b89\u5168\u8003\u91cf<\/h2>\n\n\n\n<p>\u4ece <a href=\"https:\/\/tools.ietf.org\/html\/rfc3552\">RFC3552<\/a> \u5f00\u59cb\uff0cRFC \u7684\u6a21\u677f\u4e2d\u5c31\u5305\u62ec\u4e86<code>Security Considerations<\/code>\u90e8\u5206\u3002<\/p>\n\n\n\n<p>\u7ed3\u679c\u5c31\u662f\uff0c\u9c9c\u5c11\u6709 RFC \u53d1\u5e03\u7684\u65f6\u5019\u4f1a\u6ca1\u6709\u4e00\u4e2a\u5173\u4e8e\u5b89\u5168\u7684\u5173\u952e\u7ae0\u8282\u3002\u5ba1\u67e5\u8fc7\u7a0b\u4e0d\u5141\u8bb8\u4e00\u4e2a\u8349\u6848\u91cc\u5199\u201c\u672c\u534f\u8bae\u6ca1\u6709\u5b89\u5168\u8003\u91cf\u90e8\u5206\u201d\u3002<\/p>\n\n\n\n<p>\u6240\u4ee5\uff0c\u4e0d\u7ba1\u4f60\u662f\u5728\u5b9e\u73b0\u6216\u8005\u90e8\u7f72\u4e00\u4e2a\u534f\u8bae\uff0c\u82b1\u70b9\u7cbe\u529b\u53bb\u9605\u8bfb\u548c\u7406\u89e3\u5b89\u5168\u8003\u91cf\u90e8\u5206\u662f\u503c\u5f97\u7684\u3002\u5426\u5219\uff0c\u5f88\u6709\u53ef\u80fd\u683d\u5230\u5751\u91cc\u3002<\/p>\n\n\n\n<p>\u9075\u5faa\u89c4\u8303\u7684\u53c2\u8003\uff08\u5982\u679c\u6709\u7684\u8bdd\uff09\u662f\u4e00\u4e2a\u597d\u4e3b\u610f\u3002\u5982\u679c\u6ca1\u6709\uff0c\u5c1d\u8bd5\u67e5\u627e\u4e00\u4e9b\u672f\u8bed\uff0c\u4ee5\u589e\u8fdb\u5bf9\u5f53\u524d\u6b63\u5728\u8ba8\u8bba\u95ee\u9898\u7684\u7406\u89e3\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u66f4\u591a<\/h2>\n\n\n\n<p>\u5982\u679c\u4e00\u4e2a RFC \u4e0d\u80fd\u56de\u7b54\u4f60\u7684\u95ee\u9898\uff0c\u6216\u8005\u4f60\u4e0d\u80fd\u786e\u8ba4\u5b83\u5185\u5bb9\u91cc\u7684\u63cf\u8ff0\uff0c\u6700\u597d\u7684\u529e\u6cd5\u5c31\u662f\u627e\u5230\u6700\u76f8\u5173\u7684 <a href=\"https:\/\/datatracker.ietf.org\/wg\/\">Working Group<\/a>\uff0c\u5728\u4ed6\u4eec\u7684\u90ae\u4ef6\u5217\u8868\u4e2d\u63d0\u95ee\u3002\u5982\u679c\u6ca1\u6709\u6d3b\u8dc3\u7684\u5de5\u4f5c\u7ec4\u80fd\u591f\u89e3\u51b3\u95ee\u9898\u4e2d\u6d89\u53ca\u7684\u4e3b\u9898\uff0c\u8bd5\u8bd5\u5408\u9002\u7684<a href=\"http:\/\/ietf.org\/topics\/areas\/\">\u533a\u57df<\/a>\u4e2d\u7684\u90ae\u4ef6\u5217\u8868\u3002<\/p>\n\n\n\n<p>\u63d0\u4ea4\u4e00\u4e2a errata \u901a\u5e38\u4e0d\u662f\u4f60\u7b2c\u4e00\u6b65\u5e94\u8be5\u91c7\u53d6\u7684\u63aa\u65bd\uff0c\u5148\u53bb\u627e\u4e2a\u4eba\u8c08\u8c08\u5427\u3002<\/p>\n\n\n\n<p>\u8bb8\u591a\u5de5\u4f5c\u7ec4\u73b0\u5728\u91c7\u7528 Github \u6765\u7ba1\u7406\u4ed6\u4eec\u7684\u89c4\u8303\uff0c\u5982\u679c\u4f60\u5bf9\u67d0\u4e2a\u6d3b\u8dc3\u7684\u89c4\u8303\u5b58\u7591\uff0c\u90a3\u4e48\u5230 Github \u4e0a\u53bb\u63d0\u4ea4\u95ee\u9898\u3002\u5982\u679c\u8fd9\u4e2a\u89c4\u8303\u5df2\u7ecf\u662f\u4e00\u4e2a RFC\uff0c\u901a\u5e38\u6700\u597d\u7684\u505a\u6cd5\u662f\u4f7f\u7528\u90ae\u4ef6\u5217\u8868\uff0c\u9664\u975e\u4f60\u627e\u5230\u4e00\u4e2a\u76f8\u53cd\u7684\u65b9\u5411\u3002<\/p>\n\n\n\n<p>\u6211\u786e\u8ba4\u8fd8\u6709\u5f88\u591a\u5173\u4e8e\u5982\u4f55\u9605\u8bfb RFC \u7684\u5185\u5bb9\u53ef\u4ee5\u5199\uff0c\u4e00\u4e9b\u6211\u5df2\u7ecf\u5199\u5728\u8fd9\u513f\u7684\u5185\u5bb9\u4e5f\u5b58\u5728\u4e89\u8bae\uff0c\u4f46\u8fd9\u5c31\u662f\u6211\u7684\u601d\u8003\u3002\u5e0c\u671b\u80fd\u5e2e\u5230\u4f60\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u539f\u6587\uff1a How to Read an RFC \u5728\u5b9e\u9a8c\u5ba4\u65f6\uff0c\u8bfb RFC \u5c31\u662f\u4e00\u4ef6\u4ee4\u4eba\u75db\u82e6\u7684\u4e8b\u60c5\u3002\u4eca\u5929\u642c [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7],"tags":[16],"class_list":["post-59","post","type-post","status-publish","format-standard","hentry","category-code","tag-rfc"],"_links":{"self":[{"href":"https:\/\/www.chenqing.work\/index.php?rest_route=\/wp\/v2\/posts\/59","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.chenqing.work\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.chenqing.work\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.chenqing.work\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.chenqing.work\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=59"}],"version-history":[{"count":3,"href":"https:\/\/www.chenqing.work\/index.php?rest_route=\/wp\/v2\/posts\/59\/revisions"}],"predecessor-version":[{"id":924,"href":"https:\/\/www.chenqing.work\/index.php?rest_route=\/wp\/v2\/posts\/59\/revisions\/924"}],"wp:attachment":[{"href":"https:\/\/www.chenqing.work\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=59"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.chenqing.work\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=59"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.chenqing.work\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=59"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}