| 1 |
wakaba |
1.1 |
#?SuikaWiki/0.9 page-icon="HTTP"
|
| 2 |
|
|
[[#comment]]
|
| 3 |
|
|
* 仕様書から
|
| 4 |
|
|
**RFC 1945 (HTTP/1.0) 5.; RFC 2068・2616 (HTTP/1.1) 5 Request
|
| 5 |
|
|
> A request message from a client to a server includes, within the
|
| 6 |
|
|
first line of that message, the method to be applied to the resource,
|
| 7 |
|
|
the identifier of the resource, and the protocol version in use. [DEL[[INS[{1945}]] For backwards compatibility with the more limited HTTP/0.9 protocol, there are two valid formats for an HTTP request:]]
|
| 8 |
|
|
|
| 9 |
|
|
[[クライアント]]から[[サーバー]]への[DFN[要求メッセージ]]は、
|
| 10 |
|
|
そのメッセージの最初の行に、その[[資源]]に適用する[[方式]],
|
| 11 |
|
|
その資源の識別子, 使用するプロトコルの版を含めます。[DEL[より限定された HTTP/0.9 プロトコルとの後方互換性のために、 HTTP 要求には2つの妥当な書式があります。]]
|
| 12 |
|
|
|
| 13 |
|
|
[DEL[
|
| 14 |
|
|
[DEL[
|
| 15 |
|
|
>[INS[{1945}]]
|
| 16 |
|
|
- Request = Simple-Request | Full-Request
|
| 17 |
|
|
>
|
| 18 |
|
|
- Simple-Request = "GET" SP Request-URI CRLF
|
| 19 |
|
|
>
|
| 20 |
|
|
-
|
| 21 |
|
|
[PRE[
|
| 22 |
|
|
Full-Request = Request-Line ; Section 5.1
|
| 23 |
|
|
*( General-Header ; Section 4.3
|
| 24 |
|
|
| Request-Header ; Section 5.2
|
| 25 |
|
|
| Entity-Header ) ; Section 7.1
|
| 26 |
|
|
CRLF
|
| 27 |
|
|
[ Entity-Body ] ; Section 7.2
|
| 28 |
|
|
]PRE]
|
| 29 |
|
|
]DEL]
|
| 30 |
|
|
[INS[
|
| 31 |
|
|
>[INS[{2068}]]
|
| 32 |
|
|
-
|
| 33 |
|
|
[PRE[
|
| 34 |
|
|
Request = Request-Line ; Section 5.1
|
| 35 |
|
|
*( general-header ; Section 4.5
|
| 36 |
|
|
| request-header ; Section 5.3
|
| 37 |
|
|
| entity-header ) ; Section 7.1
|
| 38 |
|
|
CRLF
|
| 39 |
|
|
[ message-body ] ; Section 7.2
|
| 40 |
|
|
]PRE]
|
| 41 |
|
|
]INS]
|
| 42 |
|
|
]DEL]
|
| 43 |
|
|
[INS[
|
| 44 |
|
|
>[INS[{2616}]]
|
| 45 |
|
|
-
|
| 46 |
|
|
[PRE[
|
| 47 |
|
|
Request = Request-Line ; Section 5.1
|
| 48 |
|
|
*(( general-header ; Section 4.5
|
| 49 |
|
|
| request-header ; Section 5.3
|
| 50 |
|
|
| entity-header ) CRLF) ; Section 7.1
|
| 51 |
|
|
CRLF
|
| 52 |
|
|
[ message-body ] ; Section 4.3
|
| 53 |
|
|
]PRE]
|
| 54 |
|
|
]INS]
|
| 55 |
|
|
|
| 56 |
|
|
[DEL[
|
| 57 |
|
|
>[INS[{1945}]] If an HTTP/1.0 server receives a Simple-Request, it must respond with
|
| 58 |
|
|
an HTTP/0.9 Simple-Response. An HTTP/1.0 client capable of receiving
|
| 59 |
|
|
a Full-Response should never generate a Simple-Request.
|
| 60 |
|
|
|
| 61 |
|
|
HTTP/1.0 サーバーが [CODE(ABNF)[Simple-Request]] を受信したら、
|
| 62 |
|
|
HTTP/0.9 [CODE(ABNF)[Simple-Response]] で応答しなければなりません。
|
| 63 |
|
|
[CODE(ABNF)[Full-Response]] を受信する能力のある HTTP/1.0
|
| 64 |
|
|
クライアントは決して [CODE(ABNF)[Simple-Request]] を生成するべきではありません。
|
| 65 |
|
|
]DEL]
|
| 66 |
|
|
|
| 67 |
|
|
*** 5.1 Request-Line
|
| 68 |
|
|
→[CODE(WikiPage)[[[Request-Line]]]]
|
| 69 |
|
|
*** RFC 2068・2616 5.2 The Resource Identified by a Request
|
| 70 |
|
|
→[CODE(WikiPage)[[[Request-URI]]]]
|
| 71 |
|
|
*** RFC 1945 5.2; RFC 2068・2616 5.3 Request Header Fields
|
| 72 |
|
|
→[CODE(WikiPage)[[[要求頭欄]]]]
|
| 73 |
|
|
** RFC の部分のライセンス
|
| 74 |
|
|
[[RFCのライセンス]]
|
| 75 |
|
|
* メモ
|