[[#comment]] * 仕様書から ** RFC 1945 (HTTP/1.0) 6.; RFC 2068・2616 (HTTP/1.1) 6 Response > After receiving and interpreting a request message, a server responds [DEL[[INS[{1945}]] in the form of]] [INS[[INS[{2068,2616}]] with]] an HTTP response message. 要求メッセージを受信して解釈した後、サーバーは HTTP 応答メッセージで応答します。 [DEL[ [DEL[ > [INS[{1945}]] - Response = Simple-Response | Full-Response > - Simple-Response = [ Entity-Body ] > - [PRE[ Full-Response = Status-Line ; Section 6.1 *( General-Header ; Section 4.3 | Response-Header ; Section 6.2 | Entity-Header ) ; Section 7.1 CRLF [ Entity-Body ] ; Section 7.2 ]PRE] ]DEL] [INS[ > [INS[{2068}]] - [PRE[ Response = Status-Line ; Section 6.1 *( general-header ; Section 4.5 | response-header ; Section 6.2 | entity-header ) ; Section 7.1 CRLF [ message-body ] ; Section 7.2 ]PRE] ]INS] ]DEL] [INS[ > [INS[{2616}]] - [PRE[ Response = Status-Line ; Section 6.1 *(( general-header ; Section 4.5 | response-header ; Section 6.2 | entity-header ) CRLF) ; Section 7.1 CRLF [ message-body ] ; Section 7.2 ]PRE] ]INS] [DEL[ > [INS[{1945}]] A Simple-Response should only be sent in response to an HTTP/0.9 Simple-Request or if the server only supports the more limited HTTP/0.9 protocol. If a client sends an HTTP/1.0 Full-Request and receives a response that does not begin with a Status-Line, it should assume that the response is a Simple-Response and parse it accordingly. Note that the Simple-Response consists only of the entity body and is terminated by the server closing the connection. [CODE(ABNF)[Simple-Response]] は HTTP/0.9 [CODE(ABNF)[Simple-Request]] への応答またはサーバーがより限定された HTTP/0.9 プロトコルしか対応していない場合のみ送信するべきです。 クライアントが HTTP/1.0 [CODE(ABNF)[Full-Request]] を送信し、 [CODE(ABNF)[[[Status-Line]]]] で始まらない応答を受信したら、 その応答は [CODE(ABNF)[Simple-Response]] と仮定し、それに従って解析するべきです。 [CODE(ABNF)[Simple-Response]] は[[実体本体]]のみを含み、 サーバーが接続を閉じることで終端とすることに注意。 ]DEL] *** 6.1 Status-Line →[CODE(WikiPage)[[[Status-Line]]]] **** 6.1.1 Status Code and Reason Phrase →[CODE(WikiPage)[[[状態符号]]]] *** 6.2 Response Header Fields →[CODE(WikiPage)[[[応答頭欄]]]] ** RFC の部分の License [[RFCのライセンス]] * メモ [1] rbkt ekqjdoaw vchou qidfevja qjylgw aujbck tyzew ([[vsai jqgpcwf]] [fhkaej@gmail.com]) [2] rbkt ekqjdoaw vchou qidfevja qjylgw aujbck tyzew ([[vsai jqgpcwf]] [fhkaej@gmail.com])