メインコンテンツまでスキップ

6 Request (リクエスト)

6 Request (リクエスト)

クライアントからサーバーまたはその逆方向のリクエストメッセージは, そのメッセージの最初の行に, リソースに適用するメソッド, リソースの識別子, 使用中のプロトコルバージョンを含みます。

Request      =       Request-Line          ; Section 6.1
*( general-header ; Section 5
| request-header ; Section 6.2
| entity-header ) ; Section 8.1
CRLF
[ message-body ] ; Section 4.3

6.1 Request Line (リクエスト行)

Request-Line = Method SP Request-URI SP RTSP-Version CRLF

Method = "DESCRIBE" ; Section 10.2
| "ANNOUNCE" ; Section 10.3
| "GET_PARAMETER" ; Section 10.8
| "OPTIONS" ; Section 10.1
| "PAUSE" ; Section 10.6
| "PLAY" ; Section 10.5
| "RECORD" ; Section 10.11
| "REDIRECT" ; Section 10.10
| "SETUP" ; Section 10.4
| "SET_PARAMETER" ; Section 10.9
| "TEARDOWN" ; Section 10.7
| extension-method

extension-method = token

Request-URI = "*" | absolute_URI

RTSP-Version = "RTSP" "/" 1*DIGIT "." 1*DIGIT

6.2 Request Header Fields (リクエストヘッダーフィールド)

request-header  =          Accept                   ; Section 12.1
| Accept-Encoding ; Section 12.2
| Accept-Language ; Section 12.3
| Authorization ; Section 12.5
| From ; Section 12.20
| If-Modified-Since ; Section 12.23
| Range ; Section 12.29
| Referer ; Section 12.30
| User-Agent ; Section 12.41

HTTP/1.1 [2] とは対照的に, RTSP リクエストは絶対パスだけでなく, スキーム, ホスト, ポートを含む絶対 URL を常に含むことに注意してください。

HTTP/1.1 はサーバーに絶対 URL の理解を要求しますが, クライアントは Host リクエストヘッダーを用いる想定です。これは HTTP/1.0 サーバーとの後方互換のためだけに必要であり, RTSP には当てはまりません。

Request-URI のアスタリスク "*" は, リクエストが特定のリソースではなくサーバー自体に適用されることを意味し, 用いるメソッドが必ずしもリソースに適用されない場合にのみ許されます。例:

OPTIONS * RTSP/1.0