#?SuikaWiki/0.9 page-icon="HTTP" [[#comment]] *仕様書から **RFC 1945 (HTTP/1.0); RFC 2068・2616 (HTTP/1.1) 6.1 Status-Line > The first line of a [DEL[[INS[{1945}]] Full-]]Response message is the Status-Line, consisting of the protocol version followed by a numeric status code and its associated textual phrase, with each element separated by SP characters. No CR or LF is allowed except in the final CRLF sequence. [CODE(ABNF)[Full-Response]] メッセージの最初の行は [CODE(ABNF)[Status-Line]] で、プロトコルの版とそれに続く数値[[状態符号]]とそれに関連付けられた文語句で構成され、 それぞれの要素は [CODE(char)[[[SP]]]] 文字で分離します。 最終 [[CRLF]] 列を除いて [CODE(char)[[[CR]]]] や [CODE(char)[[[LF]]]] は認められていません。 > - Status-Line = HTTP-Version SP Status-Code SP Reason-Phrase CRLF [DEL[ >[INS[{1045}]] Since a status line always begins with the protocol version and status code 状態行は常にプロトコルの版と状態符号 > - "HTTP/" 1*DIGIT "." 1*DIGIT SP 3DIGIT SP > (e.g., "HTTP/1.0 200 "), the presence of that expression is sufficient to differentiate a Full-Response from a Simple-Response. Although the Simple-Response format may allow such an expression to occur at the beginning of an entity body, and thus cause a misinterpretation of the message if it was given in response to a Full-Request, most HTTP/0.9 servers are limited to responses of type "text/html" and therefore would never generate such a response. (例えば [SAMP(HTTP)[HTTP/1.0 200 ]]) で始まりますから、 この表現の存在は [CODE(ABNF)[Full-Response]] と [CODE(ABNF)[Simple-Response]] を区別するのに十分です。 [CODE(ABNF)[Simple-Response]] 書式は実体本体にこのような表現を認めていますから、 [CODE(ABNF)[Full-Request]] 経の応答でそのようなものがあるとメッセージの誤解釈を起こしてしまうことになりますが、 ほとんどの HTTP/0.9 サーバーは型 [CODE(MIME)[[[text/html]]]] の応答に制限されていますから、そのような応答は決して生成されないでしょう。 ]DEL] *** 6.1.1 Status Code and Reason Phrase →[CODE(WikiPage)[[[状態符号]]]] ** RFC の部分の License [[RFCのライセンス]] * メモ