<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body><preamble xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:"><figure xmlns="http://www.w3.org/1999/xhtml" class="important"><p><anchor-end xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="507" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">[507]</anchor-end> このページで紹介するのは、 <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">HTTP</anchor> の<strong>旧仕様</strong>である <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">RFC 1945</anchor>、
<anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">RFC 2068</anchor>、<anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">RFC 2616</anchor> です。 <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">HTTP</anchor> の現行仕様は <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">RFC 7230</anchor> 他です。</p></figure><p xmlns="http://www.w3.org/1999/xhtml"><anchor-end xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="21" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">[21]</anchor-end> 最新の情報は、 <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">HTTP</anchor> や <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">RFC 723<var xmlns="http://www.w3.org/1999/xhtml">x</var></anchor> を参照してください。</p></preamble><section><h1>仕様書</h1><refs xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:"><ul xmlns="http://www.w3.org/1999/xhtml"><li><anchor-end xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="17" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">[17]</anchor-end> <cite xml:lang="en">RFC 2068 - Hypertext Transfer Protocol -- HTTP/1.1</cite>
( (<time>2014-09-29 05:21:03 +09:00</time> 版))
<anchor-external xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:resScheme="URI" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:resParameter="http://tools.ietf.org/html/rfc2068">http://tools.ietf.org/html/rfc2068</anchor-external></li><li><anchor-end xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="506" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">[506]</anchor-end> <cite xml:lang="en">RFC 2616 - Hypertext Transfer Protocol -- HTTP/1.1</cite> (<time>2013-09-17 10:26:33 +09:00</time> 版) <anchor-external xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:resScheme="URI" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:resParameter="http://tools.ietf.org/html/rfc2616">http://tools.ietf.org/html/rfc2616</anchor-external></li></ul></refs></section><section><h1>日本語訳</h1><p><anchor-end xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="4" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">[4]</anchor-end>
<strong>HTTP — Hypertext Transfer Protocol</strong>
<anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">RFC 1945</anchor>, <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">RFC 2068</anchor>, <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">RFC 2616</anchor> の和訳</p><p><anchor-end xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="3" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">[3]</anchor-end><delete xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:"><section xmlns="http://www.w3.org/1999/xhtml"><h1>RFC 1945 IESG Note:</h1><blockquote><p>The IESG has concerns about this protocol, and expects this document
to be replaced relatively soon by a standards track document.</p></blockquote><p><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">IESG</anchor> はこのプロトコルについて懸念しており、
この文書が比較的早く<anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">標準化過程</anchor>文書で置き換えられることを期待しています。</p></section></delete></p></section><section><h1>Abstract</h1><blockquote><p>The Hypertext Transfer Protocol (HTTP) is an application-level
protocol <del><ins>{1945}</ins> with the lightness and speed necessary</del>
for distributed, collaborative, hypermedia information systems. It is a generic,
stateless<del>, <ins>{1945,2068}</ins> object-oriented</del> protocol which can be used for many tasks <ins><ins>{2616}</ins> beyond its use for hypertext</ins>, such as
name servers and distributed object management systems, through extension of its request methods <del><ins>{1945}</ins> (commands)</del><ins>, <ins>{2616}</ins> error codes and headers [47] </ins>. A feature of HTTP is the typing <ins><ins>{2068,2616}</ins> and negotiation</ins>
of data representation, allowing systems to be built independently of the data being transferred.</p></blockquote><p>ハイパーテキスト転送プロトコル (HTTP) は、分散協調ハイパー媒体情報システム用<del>に必要な軽さと速さを備えた</del>応用層プロトコルです。
HTTP は一般的で状態を持たない<del>オブジェクト指向の</del>プロトコルであり、要求方式 <del>(命令)</del> <ins>や誤り符号や頭群</ins>の拡張を通じて、<ins>ハイパーテキストのための使用にとどまらず、</ins>名前鯖や分散物体管理システムのような種々の仕事のために使うことができます。
HTTP の特徴はデータ表現の型付け<ins>および折衝</ins>であり、
これによって転送されるデータとは独立にシステムを構築できます。</p><blockquote><p>HTTP has been in use by the World-Wide Web global information
initiative since 1990. This specification <del><ins>{1945}</ins> reflects common usage of the protocol referred to as &quot;HTTP/1.0&quot;</del> <ins><ins>{2068,2616}</ins> defines the protocol referred to as &quot;HTTP/1.1&quot;<ins>, and is an update to RFC 2068 [33] </ins></ins>.</p></blockquote><p>HTTP は World Wide Web 大域情報活動で 1990 年以来使われています。
この仕様書は <del>「HTTP/1.0」と呼ばれるプロトコルの共通の使用法を反映しています</del> <ins>「HTTP/1.1」と呼ばれるプロトコルを定義<ins>しますが、この文書は RFC 2068 の更新であり</ins>ます。</ins>。</p></section><section><h1>目次</h1><ol><li>1   Introduction ...................................................7<ol><li>1.1    Purpose......................................................7</li><li>1.2   Requirements .................................................8</li><li>1.3   Terminology ..................................................8<ul><li>和訳 (部分) : <code class="WikiPage"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">接続</anchor></code>, <code class="WikiPage"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">メッセージ</anchor></code>, <code class="WikiPage"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">要求</anchor></code>, <code class="WikiPage"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">応答</anchor></code>, <code class="WikiPage"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">資源</anchor></code>, <code class="WikiPage"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">実体</anchor></code>, <code class="WikiPage"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">表現</anchor></code>, <code class="WikiPage"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">内容折衝</anchor></code>, <code class="WikiPage"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">変種</anchor></code>, <code class="WikiPage"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">クライアント</anchor></code>, <code class="WikiPage"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">利用者エージェント</anchor></code>, <code class="WikiPage"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">サーバー</anchor></code>, <code class="WikiPage"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">起源サーバー</anchor></code>,<code class="WikiPage"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">串</anchor></code>,  <code class="WikiPage"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">関門</anchor></code>, <code class="WikiPage"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">トンネル</anchor></code>, <code class="WikiPage"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">キャッシュ</anchor></code>, <code class="WikiPage"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">キャッシュ可能</anchor></code>, <code class="WikiPage"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">初手</anchor></code>, <code class="WikiPage"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">明示満期時刻</anchor></code>, <code class="WikiPage"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">発見的満期時刻</anchor></code>, <code class="WikiPage"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">齢</anchor></code>, <code class="WikiPage"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">新鮮寿命</anchor></code>, <code class="WikiPage"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">新鮮</anchor></code>, <code class="WikiPage"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">腐敗</anchor></code>, <code class="WikiPage"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">意味的透過</anchor></code>, <code class="WikiPage"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">検証子</anchor></code>, <code class="WikiPage"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">上流</anchor></code>, <code class="WikiPage"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">上り</anchor></code></li></ul></li><li>1.4   Overall Operation ...........................................12</li></ol></li><li>2   Notational Conventions and Generic Grammar ....................14<ol><li>2.1   Augmented BNF ...............................................14<ul><li>参考 : <code class="WikiPage"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">HTTPのABNF</anchor></code></li></ul></li><li>2.2   Basic Rules .................................................15<ul><li>和訳 : <code class="WikiPage"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">HTTP//メッセージ</anchor></code></li><li>参考 : <code class="WikiPage"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">token</anchor></code>, <code class="WikiPage"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">tspecials</anchor></code>, <code class="WikiPage"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">quoted-string</anchor></code>, <code class="WikiPage"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">comment</anchor></code>, <code class="WikiPage"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">ctext</anchor></code></li></ul></li></ol></li><li>3   Protocol Parameters ...........................................17<ol><li>3.1   HTTP Version ................................................17 <code class="WikiPage"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">HTTP-Version</anchor></code></li><li>3.2   Uniform Resource Identifiers ................................18 <code class="WikiPage"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">HTTP//URI</anchor></code><ol><li>3.2.1    General Syntax ...........................................19</li><li>3.2.2    http URL .................................................19 <code class="WikiPage"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">http</anchor></code></li><li>3.2.3    URI Comparison ...........................................20</li></ol></li><li>3.3   Date/Time Formats ...........................................20 <code class="WikiPage"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">HTTPの日付形式</anchor></code><ol><li>3.3.1    Full Date ................................................20</li><li>3.3.2    Delta Seconds ............................................21</li></ol></li><li>3.4   Character Sets ..............................................21 <code class="WikiPage"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">charset//HTTP</anchor></code><ol><li>3.4.1    Missing Charset ..........................................22</li></ol></li><li>3.5   Content Codings .............................................23<ul><li>和訳 : <code class="WikiPage"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">内容符号化</anchor></code>, <code class="WikiPage"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">content-coding</anchor></code></li></ul></li><li>3.6   Transfer Codings ............................................24<ul><li>和訳 : <code class="WikiPage"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">転送符号化</anchor></code>, <code class="WikiPage"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">transfer-coding</anchor></code></li></ul><ol><li>3.6.1    Chunked Transfer Coding ..................................25<ul><li>和訳 : <code class="WikiPage"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">chunked</anchor></code></li></ul></li></ol></li><li>3.7   Media Types .................................................26 <code class="WikiPage"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">媒体型</anchor></code><ol><li>3.7.1    Canonicalization and Text Defaults .......................27<ul><li><code class="WikiPage"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">text/*//正規化</anchor></code></li></ul></li><li>3.7.2    Multipart Types ..........................................27 <code class="WikiPage"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">multipart/*//HTTP</anchor></code></li></ol></li><li>3.8   Product Tokens ..............................................28 <code class="WikiPage"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">product</anchor></code></li><li>3.9   Quality Values ..............................................29<ul><li><code class="WikiPage"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">qvalue</anchor></code></li></ul></li><li>3.10  Language Tags ...............................................29 <code class="WikiPage"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">言語札</anchor></code></li><li>3.11  Entity Tags .................................................30<ul><li><code class="WikiPage"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">entity-value</anchor></code></li></ul></li><li>3.12  Range Units .................................................30</li></ol></li><li>4   HTTP Message ..................................................31 <code class="WikiPage"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">メッセージ</anchor></code><ol><li>4.1   Message Types ...............................................31</li><li>4.2   Message Headers .............................................31 <code class="WikiPage"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">HTTP//頭欄</anchor></code></li><li>4.3   Message Body ................................................32 <code class="WikiPage"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">message-body</anchor></code></li><li>4.4   Message Length ..............................................33 <code class="WikiPage"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">メッセージ//長さ</anchor></code></li><li>4.5   General Header Fields .......................................34 <code class="WikiPage"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">一般頭欄</anchor></code></li></ol></li><li>5   Request .......................................................35 <code class="WikiPage"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">要求</anchor></code><ol><li>5.1   <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">Request-Line</anchor> ................................................35<ol><li>5.1.1    Method ...................................................36 <code class="WikiPage"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">HTTP//method</anchor></code></li><li>5.1.2    <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">Request-URI</anchor> ..............................................36</li></ol></li><li>5.2   The Resource Identified by a Request ........................38</li><li>5.3   Request Header Fields .......................................38 <code class="WikiPage"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">要求頭欄</anchor></code></li></ol></li><li>6   Response ......................................................39 <code class="WikiPage"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">HTTP応答</anchor></code><ol><li>6.1   <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">Status-Line</anchor> .................................................39<ol><li>6.1.1    Status Code and Reason Phrase ............................39</li></ol></li></ol><ul><li><code class="WikiPage"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">HTTP応答</anchor></code></li></ul><ol><li>6.2   Response Header Fields ......................................41 <code class="WikiPage"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">応答頭欄</anchor></code></li></ol></li><li>7   Entity ........................................................42 <code class="WikiPage"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">HTTP//実体</anchor></code><ol><li>7.1   Entity Header Fields ........................................42 <code class="WikiPage"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">実体頭欄</anchor></code></li><li>7.2   Entity Body .................................................43 <code class="WikiPage"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">entity-body</anchor></code><ol><li>7.2.1    Type .....................................................43 <code class="WikiPage"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">Content-Type</anchor></code></li><li>7.2.2    Entity Length ............................................43 <code class="WikiPage"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">Content-Length</anchor></code></li></ol></li></ol></li><li>8   Connections ...................................................44<ol><li>8.1   Persistent Connections ......................................44 <code class="WikiPage"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">持続接続</anchor></code><ol><li>8.1.1    Purpose ..................................................44</li><li>8.1.2    Overall Operation ........................................45</li><li>8.1.3    Proxy Servers ............................................46</li><li>8.1.4    Practical Considerations .................................46</li></ol></li><li>8.2   Message Transmission Requirements ...........................47<ol><li>8.2.1    Persistent Connections and Flow Control ..................47</li><li>8.2.2    Monitoring Connections for Error Status Messages .........48</li><li>8.2.3    Use of the 100 (Continue) Status .........................48 <code class="WikiPage"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">100</anchor></code></li><li>8.2.4    Client Behavior if Server Prematurely Closes Connection ..50</li></ol></li></ol></li><li>9   Method Definitions ............................................51 <code class="WikiPage"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">HTTP//method</anchor></code><ol><li>9.1   Safe and Idempotent Methods .................................51<ol><li>9.1.1    Safe Methods .............................................51 <code class="WikiPage"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">安全</anchor></code></li><li>9.1.2    Idempotent Methods  .......................................51 <code class="WikiPage"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">冪等</anchor></code></li></ol></li><li>9.2   <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">OPTIONS</anchor> .....................................................52</li><li>9.3   <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">GET</anchor> .........................................................53</li><li>9.4   <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">HEAD</anchor> ........................................................54</li><li>9.5   <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">POST</anchor> ........................................................54</li><li>9.6   <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">PUT</anchor> .........................................................55</li><li>9.7   <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">DELETE</anchor> ......................................................56</li><li>9.8   <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">TRACE</anchor> .......................................................56</li><li>9.9   <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">CONNECT</anchor> .....................................................57</li></ol></li><li>10   Status Code Definitions ......................................57 <code class="WikiPage"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">状態符号</anchor></code><ol><li>10.1  Informational <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">1xx</anchor> ...........................................57<ol><li>10.1.1   <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">100</anchor> Continue .............................................58</li><li>10.1.2   <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">101</anchor> Switching Protocols ..................................58</li></ol></li><li>10.2  Successful <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">2xx</anchor> ..............................................58<ol><li>10.2.1   <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">200</anchor> OK ...................................................58</li><li>10.2.2   <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">201</anchor> Created ..............................................59</li><li>10.2.3   <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">202</anchor> Accepted .............................................59</li><li>10.2.4   <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">203</anchor> Non-Authoritative Information ........................59</li><li>10.2.5   <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">204</anchor> No Content ...........................................60</li><li>10.2.6   <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">205</anchor> Reset Content ........................................60</li><li>10.2.7   <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">206</anchor> Partial Content ......................................60</li></ol></li><li>10.3  Redirection <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">3xx</anchor> .............................................61<ol><li>10.3.1   <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">300</anchor> Multiple Choices .....................................61</li><li>10.3.2   <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">301</anchor> Moved Permanently ....................................62</li><li>10.3.3   <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">302</anchor> Found ................................................62</li><li>10.3.4   <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">303</anchor> See Other ............................................63</li><li>10.3.5   <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">304</anchor> Not Modified .........................................63</li><li>10.3.6   <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">305</anchor> Use Proxy ............................................64</li><li>10.3.7   <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">306</anchor> (Unused) .............................................64</li><li>10.3.8   <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">307</anchor> Temporary Redirect ...................................65</li></ol></li><li>10.4  Client Error <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">4xx</anchor> ............................................65<ol><li>10.4.1    <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">400</anchor> Bad Request .........................................65</li><li>10.4.2    <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">401</anchor> Unauthorized ........................................66</li><li>10.4.3    <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">402</anchor> Payment Required ....................................66</li><li>10.4.4    <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">403</anchor> Forbidden ...........................................66</li><li>10.4.5    <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">404</anchor> Not Found ...........................................66</li><li>10.4.6    <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">405</anchor> Method Not Allowed ..................................66</li><li>10.4.7    <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">406</anchor> Not Acceptable ......................................67</li><li>10.4.8    <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">407</anchor> Proxy Authentication Required .......................67</li><li>10.4.9    <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">408</anchor> Request Timeout .....................................67</li><li>10.4.10   <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">409</anchor> Conflict ............................................67</li><li>10.4.11   <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">410</anchor> Gone ................................................68</li><li>10.4.12   <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">411</anchor> Length Required .....................................68</li><li>10.4.13   <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">412</anchor> Precondition Failed .................................68</li><li>10.4.14   <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">413</anchor> Request Entity Too Large ............................69</li><li>10.4.15   <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">414</anchor> Request-URI Too Long ................................69</li><li>10.4.16   <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">415</anchor> Unsupported Media Type ..............................69</li><li>10.4.17   <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">416</anchor> Requested Range Not Satisfiable .....................69</li><li>10.4.18   <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">417</anchor> Expectation Failed ..................................70</li></ol></li><li>10.5  Server Error <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">5xx</anchor> ............................................70<ol><li>10.5.1   <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">500</anchor> Internal Server Error ................................70</li><li>10.5.2   <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">501</anchor> Not Implemented ......................................70</li><li>10.5.3   <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">502</anchor> Bad Gateway ..........................................70</li><li>10.5.4   <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">503</anchor> Service Unavailable ..................................70</li><li>10.5.5   <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">504</anchor> Gateway Timeout ......................................71</li><li>10.5.6   <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">505</anchor> HTTP Version Not Supported ...........................71</li></ol></li></ol></li><li>11   Access Authentication ........................................71</li><li>12   Content Negotiation ..........................................71<ul><li><code class="WikiPage"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">内容折衝</anchor></code></li></ul><ol><li>12.1  Server-driven Negotiation ...................................72<ul><li><code class="WikiPage"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">サーバー駆動折衝</anchor></code></li></ul></li><li>12.2  Agent-driven Negotiation ....................................73<ul><li><code class="WikiPage"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">エージェント駆動折衝</anchor></code></li></ul></li><li>12.3  Transparent Negotiation .....................................74<ul><li><code class="WikiPage"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">透過折衝</anchor></code></li></ul></li></ol></li><li>13   Caching in HTTP ..............................................74<ul><li><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">HTTP RFC//HTTPキャッシュ</anchor><ol><li>13.1.1   Cache Correctness ........................................75</li><li>13.1.2   Warnings .................................................76</li><li>13.1.3   Cache-control Mechanisms .................................77</li><li>13.1.4   Explicit User Agent Warnings .............................78</li><li>13.1.5   Exceptions to the Rules and Warnings .....................78</li><li>13.1.6   Client-controlled Behavior ...............................79</li></ol></li></ul><ol><li>13.2  Expiration Model ............................................79<ol><li>13.2.1   Server-Specified Expiration ..............................79</li><li>13.2.2   Heuristic Expiration .....................................80</li><li>13.2.3   Age Calculations .........................................80</li><li>13.2.4   Expiration Calculations ..................................83</li><li>13.2.5   Disambiguating Expiration Values .........................84</li><li>13.2.6   Disambiguating Multiple Responses ........................84</li><li>13.3  Validation Model ............................................85</li><li>13.3.1   Last-Modified Dates ......................................86</li><li>13.3.2   Entity Tag Cache Validators ..............................86</li><li>13.3.3   Weak and Strong Validators ...............................86</li><li>13.3.4   Rules for When to Use Entity Tags and Last-Modified Dates.89</li><li>13.3.5   Non-validating Conditionals ..............................90</li></ol></li><li>13.4  Response Cacheability .......................................91</li><li>13.5  Constructing Responses From Caches ..........................92<ol><li>13.5.1   End-to-end and Hop-by-hop Headers ........................92</li><li>13.5.2   Non-modifiable Headers ...................................92</li><li>13.5.3   Combining Headers ........................................94</li><li>13.5.4   Combining Byte Ranges ....................................95</li></ol></li><li>13.6  Caching Negotiated Responses ................................95<ul><li><code class="WikiPage"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">内容折衝//キャッシュ</anchor></code></li></ul></li><li>13.7  Shared and Non-Shared Caches ................................96</li><li>13.8  Errors or Incomplete Response Cache Behavior ................97</li><li>13.9  Side Effects of GET and HEAD ................................97</li><li>13.10   Invalidation After Updates or Deletions ...................97</li><li>13.11   Write-Through Mandatory ...................................98</li><li>13.12   Cache Replacement .........................................99</li><li>13.13   History Lists .............................................99</li></ol></li><li>14   Header Field Definitions ....................................100<ol><li>14.1  <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">Accept</anchor> .....................................................100</li><li>14.2  <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">Accept-Charset</anchor> .............................................102</li><li>14.3  <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">Accept-Encoding</anchor> ............................................102</li><li>14.4  <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">Accept-Language</anchor> ............................................104</li><li>14.5  <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">Accept-Ranges</anchor> ..............................................105</li><li>14.6  <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">Age</anchor> ........................................................106</li><li>14.7  <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">Allow</anchor> ......................................................106</li><li>14.8  <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">Authorization</anchor> ..............................................107</li><li>14.9  <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">Cache-Control</anchor> ..............................................108<ol><li>14.9.1   What is Cacheable .......................................109</li><li>14.9.2   What May be Stored by Caches ............................110</li><li>14.9.3   Modifications of the Basic Expiration Mechanism .........111</li><li>14.9.4   Cache Revalidation and Reload Controls ..................113</li><li>14.9.5   No-Transform Directive ..................................115</li><li>14.9.6   Cache Control Extensions ................................116</li></ol></li><li>14.10   <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">Connection</anchor> ...............................................117</li><li>14.11   <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">Content-Encoding</anchor> .........................................118</li><li>14.12   <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">Content-Language</anchor> .........................................118</li><li>14.13   <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">Content-Length</anchor> ...........................................119</li><li>14.14   <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">Content-Location</anchor> .........................................120</li><li>14.15   <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">Content-MD5</anchor> ..............................................121</li><li>14.16   <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">Content-Range</anchor> ............................................122</li><li>14.17   <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">Content-Type</anchor> .............................................124<ul><li><code class="WikiPage"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">Content-Type//仕様書から</anchor></code></li></ul></li><li>14.18   <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">Date</anchor> .....................................................124<ol><li>14.18.1   Clockless Origin Server Operation ......................125</li></ol></li><li>14.19   <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">ETag</anchor> .....................................................126</li><li>14.20   <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">Expect</anchor> ...................................................126</li><li>14.21   <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">Expires</anchor> ..................................................127</li><li>14.22   <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">From</anchor> .....................................................128</li><li>14.23   <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">Host</anchor> .....................................................128</li><li>14.24   <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">If-Match</anchor> .................................................129</li><li>14.25   <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">If-Modified-Since</anchor> ........................................130</li><li>14.26   <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">If-None-Match</anchor> ............................................132</li><li>14.27   <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">If-Range</anchor> .................................................133</li><li>14.28   <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">If-Unmodified-Since</anchor> ......................................134</li><li>14.29   <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">Last-Modified</anchor> ............................................134</li><li>14.30   <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">Location</anchor> .................................................135</li><li>14.31   <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">Max-Forwards</anchor> .............................................136</li><li>14.32   <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">Pragma</anchor> ...................................................136</li><li>14.33   <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">Proxy-Authenticate</anchor> .......................................137</li><li>14.34   <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">Proxy-Authorization</anchor> ......................................137</li><li>14.35   <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">Range</anchor> ....................................................138<ol><li>14.35.1    Byte Ranges ...........................................138</li><li>14.35.2    Range Retrieval Requests ..............................139</li></ol></li><li>14.36   <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">Referer</anchor> ..................................................140</li><li>14.37   <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">Retry-After</anchor> ..............................................141</li><li>14.38   <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">Server</anchor> ...................................................141</li><li>14.39   <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">TE</anchor> .......................................................142</li><li>14.40   <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">Trailer</anchor> ..................................................143</li><li>14.41  <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">Transfer-Encoding</anchor>..........................................143</li><li>14.42   <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">Upgrade</anchor> ..................................................144</li><li>14.43   <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">User-Agent</anchor> ...............................................145</li><li>14.44   <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">Vary</anchor> .....................................................145</li><li>14.45   <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">Via</anchor> ......................................................146</li><li>14.46   <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">Warning</anchor> ..................................................148</li><li>14.47   <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">WWW-Authenticate</anchor> .........................................150</li></ol></li><li>15 Security Considerations .......................................150<ol><li>15.1      Personal Information....................................151<ol><li>15.1.1   Abuse of Server Log Information .........................151</li><li>15.1.2   Transfer of Sensitive Information .......................151 <code class="WikiPage"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">HTTP//URI</anchor></code>, <code class="WikiPage"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">Referer:</anchor></code> (抜粋)</li><li>15.1.3   Encoding Sensitive Information in URI's .................152 <code class="WikiPage"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">HTTP//URI</anchor></code></li><li>15.1.4   Privacy Issues Connected to Accept Headers ..............152<ul><li><code class="WikiPage"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">Accept-Language</anchor></code></li></ul></li></ol></li><li>15.2  Attacks Based On File and Path Names .......................153</li><li>15.3  DNS Spoofing ...............................................154</li><li>15.4  Location Headers and Spoofing ..............................154</li><li>15.5  Content-Disposition Issues .................................154 <code class="WikiPage"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">Content-Disposition</anchor></code></li><li>15.6  Authentication Credentials and Idle Clients ................155</li><li>15.7  Proxies and Caching ........................................155<ol><li>15.7.1    Denial of Service Attacks on Proxies....................156</li></ol></li></ol></li><li>16   Acknowledgments .............................................156</li><li>17   References ..................................................158</li><li>18   Authors' Addresses ..........................................162</li><li>19   Appendices ..................................................164<ol><li>19.1  Internet Media Type message/http and application/http ......164 <code class="WikiPage"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">message/http</anchor></code></li><li>19.2  Internet Media Type <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">multipart/byteranges</anchor> ...................165</li><li>19.3  Tolerant Applications ......................................166<ul><li><code class="WikiPage"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">2桁西暦年号の解釈</anchor></code> (抜粋)</li></ul></li><li>19.4  Differences Between HTTP Entities and RFC 2045 Entities ....167<ul><li><code class="WikiPage"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">実体//HTTP実体とMIME実体</anchor></code></li></ul><ol><li>19.4.1   MIME-Version ............................................167</li><li>19.4.2   Conversion to Canonical Form ............................167</li><li>19.4.3   Conversion of Date Formats ..............................168</li><li>19.4.4   Introduction of Content-Encoding ........................168</li><li>19.4.5   No Content-Transfer-Encoding ............................168</li><li>19.4.6   Introduction of Transfer-Encoding .......................169</li><li>19.4.7   MHTML and Line Length Limitations .......................169</li></ol></li><li>19.5  Additional Features ........................................169<ol><li>19.5.1   <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">Content-Disposition</anchor> .....................................170</li></ol></li><li>19.6  Compatibility with Previous Versions .......................170<ol><li>19.6.1   Changes from HTTP/1.0 ...................................171</li><li>19.6.2   Compatibility with HTTP/1.0 Persistent Connections ......172</li><li>19.6.3   Changes from RFC 2068 ...................................172</li></ol></li></ol></li><li>20   Index .......................................................175</li><li>21   Full Copyright Statement ....................................176<ul><li><code class="WikiPage"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">RFCのライセンス</anchor></code></li></ul></li></ol><section><h1>RFC 2068</h1><pre> </pre><ol><li>1 Introduction.............................................7<ol><li>1.1 Purpose ..............................................7</li><li>1.2 Requirements .........................................7</li><li>1.3 Terminology ..........................................8<ul><li>和訳 (部分) : <code class="WikiPage"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">接続</anchor></code>, <code class="WikiPage"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">メッセージ</anchor></code>, <code class="WikiPage"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">要求</anchor></code>, <code class="WikiPage"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">応答</anchor></code>, <code class="WikiPage"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">資源</anchor></code>, <code class="WikiPage"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">実体</anchor></code>, <code class="WikiPage"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">表現</anchor></code>, <code class="WikiPage"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">内容折衝</anchor></code>, <code class="WikiPage"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">変種</anchor></code>, <code class="WikiPage"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">クライアント</anchor></code>, <code class="WikiPage"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">利用者エージェント</anchor></code>, <code class="WikiPage"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">サーバー</anchor></code>, <code class="WikiPage"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">起源サーバー</anchor></code>,<code class="WikiPage"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">串</anchor></code>,  <code class="WikiPage"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">関門</anchor></code>, <code class="WikiPage"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">トンネル</anchor></code>, <code class="WikiPage"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">キャッシュ</anchor></code>, <code class="WikiPage"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">キャッシュ可能</anchor></code>, <code class="WikiPage"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">初手</anchor></code>, <code class="WikiPage"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">明示満期時刻</anchor></code>, <code class="WikiPage"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">発見的満期時刻</anchor></code>, <code class="WikiPage"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">齢</anchor></code>, <code class="WikiPage"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">新鮮寿命</anchor></code>, <code class="WikiPage"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">新鮮</anchor></code>, <code class="WikiPage"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">腐敗</anchor></code>, <code class="WikiPage"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">意味的透過</anchor></code>, <code class="WikiPage"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">検証子</anchor></code></li></ul></li><li>1.4 Overall Operation ...................................11</li></ol></li><li>2 Notational Conventions and Generic Grammar..............13<ol><li>2.1 Augmented BNF .......................................13</li><li>2.2 Basic Rules .........................................15<ul><li>和訳 : <code class="WikiPage"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">HTTP//メッセージ</anchor></code></li><li>参考 : <code class="WikiPage"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">token</anchor></code>, <code class="WikiPage"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">tspecials</anchor></code>, <code class="WikiPage"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">quoted-string</anchor></code>, <code class="WikiPage"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">comment</anchor></code>, <code class="WikiPage"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">ctext</anchor></code></li></ul></li></ol></li><li>3 Protocol Parameters.....................................17<ol><li>3.1 HTTP Version ........................................17 <code class="WikiPage"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">HTTP-Version</anchor></code></li><li>3.2 Uniform Resource Identifiers ........................18 <code class="WikiPage"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">HTTP//URI</anchor></code><ol><li>3.2.1 General Syntax ...................................18</li><li>3.2.2 http URL .........................................19</li><li>3.2.3 URI Comparison ...................................20</li></ol></li><li>3.3 Date/Time Formats ...................................21 <code class="WikiPage"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">HTTPの日付形式</anchor></code><ol><li>3.3.1 Full Date ........................................21</li><li>3.3.2 Delta Seconds ....................................22</li></ol></li><li>3.4 Character Sets ......................................22 <code class="WikiPage"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">charset//HTTP</anchor></code></li><li>3.5 Content Codings .....................................23<ul><li>和訳 : <code class="WikiPage"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">内容符号化</anchor></code></li></ul></li><li>3.6 Transfer Codings ....................................24<ul><li>和訳 : <code class="WikiPage"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">転送符号化</anchor></code></li></ul></li><li>3.7 Media Types .........................................25 <code class="WikiPage"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">媒体型//HTTP</anchor></code><ol><li>3.7.1 Canonicalization and Text Defaults ...............26 <code class="WikiPage"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">text/*//正規化</anchor></code></li><li>3.7.2 Multipart Types ..................................27 <code class="WikiPage"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">multipart/*//HTTP</anchor></code></li></ol></li><li>3.8 Product Tokens ......................................28</li><li>3.9 Quality Values ......................................28<ul><li><code class="WikiPage"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">qvalue</anchor></code></li></ul></li><li>3.10 Language Tags ......................................28</li><li>3.11 Entity Tags ........................................29<ul><li><code class="WikiPage"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">entity-tag</anchor></code></li></ul></li><li>3.12 Range Units ........................................30</li></ol></li><li>4 HTTP Message............................................30<ol><li>4.1 Message Types .......................................30</li><li>4.2 Message Headers .....................................31</li><li>4.3 Message Body ........................................32</li><li>4.4 Message Length ......................................32</li><li>4.5 General Header Fields ...............................34</li></ol></li><li>5 Request.................................................34<ol><li>5.1 Request-Line ........................................34<ol><li>5.1.1 Method ...........................................35</li><li>5.1.2 Request-URI ......................................35</li></ol></li><li>5.2 The Resource Identified by a Request ................37</li><li>5.3 Request Header Fields ...............................37</li></ol></li><li>6 Response................................................38<ol><li>6.1 Status-Line .........................................38<ol><li>6.1.1 Status Code and Reason Phrase ....................39</li></ol></li><li>6.2 Response Header Fields ..............................41</li></ol></li><li>7 Entity..................................................41<ol><li>7.1 Entity Header Fields ................................41</li><li>7.2 Entity Body .........................................42<ol><li>7.2.1 Type .............................................42</li><li>7.2.2 Length ...........................................43</li></ol></li></ol></li><li>8 Connections.............................................43<ol><li>8.1 Persistent Connections ..............................43<ol><li>8.1.1 Purpose ..........................................43</li><li>8.1.2 Overall Operation ................................44</li><li>8.1.3 Proxy Servers ....................................45</li><li>8.1.4 Practical Considerations .........................45</li></ol></li><li>8.2 Message Transmission Requirements ...................46</li></ol></li><li>9 Method Definitions......................................48<ol><li>9.1 Safe and Idempotent Methods .........................48<ol><li>9.1.1 Safe Methods .....................................48</li><li>9.1.2 Idempotent Methods ...............................49</li></ol></li><li>9.2 OPTIONS .............................................49</li><li>9.3 GET .................................................50</li><li>9.4 HEAD ................................................50</li><li>9.5 POST ................................................51</li><li>9.6 PUT .................................................52</li><li>9.7 DELETE ..............................................53</li><li>9.8 TRACE ...............................................53</li></ol></li><li>10 Status Code Definitions................................53<ol><li>10.1 Informational <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">1xx</anchor> ..................................54<ol><li>10.1.1 <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">100</anchor> Continue ....................................54</li><li>10.1.2 <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">101</anchor> Switching Protocols .........................54</li></ol></li><li>10.2 Successful <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">2xx</anchor> .....................................54<ol><li>10.2.1 <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">200</anchor> OK ..........................................54</li><li>10.2.2 <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">201</anchor> Created .....................................55</li><li>10.2.3 <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">202</anchor> Accepted ....................................55</li><li>10.2.4 <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">203</anchor> Non-Authoritative Information ...............55</li><li>10.2.5 <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">204</anchor> No Content ..................................55</li><li>10.2.6 <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">205</anchor> Reset Content ...............................56</li><li>10.2.7 <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">206</anchor> Partial Content .............................56</li></ol></li><li>10.3 Redirection <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">3xx</anchor> ....................................56<ol><li>10.3.1 <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">300</anchor> Multiple Choices ............................57</li><li>10.3.2 <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">301</anchor> Moved Permanently ...........................57</li><li>10.3.3 <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">302</anchor> Moved Temporarily ...........................58</li><li>10.3.4 <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">303</anchor> See Other ...................................58</li><li>10.3.5 <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">304</anchor> Not Modified ................................58</li><li>10.3.6 <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">305</anchor> Use Proxy ...................................59</li></ol></li><li>10.4 Client Error <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">4xx</anchor> ...................................59<ol><li>10.4.1 <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">400</anchor> Bad Request .................................60</li><li>10.4.2 <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">401</anchor> Unauthorized ................................60</li><li>10.4.3 <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">402</anchor> Payment Required ............................60</li><li>10.4.4 <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">403</anchor> Forbidden ...................................60</li><li>10.4.5 <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">404</anchor> Not Found ...................................60</li><li>10.4.6 <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">405</anchor> Method Not Allowed ..........................61</li><li>10.4.7 <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">406</anchor> Not Acceptable ..............................61</li><li>10.4.8 <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">407</anchor> Proxy Authentication Required ...............61</li><li>10.4.9 <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">408</anchor> Request Timeout .............................62</li><li>10.4.10 <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">409</anchor> Conflict ...................................62</li><li>10.4.11 <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">410</anchor> Gone .......................................62</li><li>10.4.12 <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">411</anchor> Length Required ............................63</li><li>10.4.13 <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">412</anchor> Precondition Failed ........................63</li><li>10.4.14 <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">413</anchor> Request Entity Too Large ...................63</li><li>10.4.15 <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">414</anchor> Request-URI Too Long .......................63</li><li>10.4.16 <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">415</anchor> Unsupported Media Type .....................63</li></ol></li><li>10.5 Server Error <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">5xx</anchor> ...................................64<ol><li>10.5.1 <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">500</anchor> Internal Server Error .......................64</li><li>10.5.2 <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">501</anchor> Not Implemented .............................64</li><li>10.5.3 <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">502</anchor> Bad Gateway .................................64</li><li>10.5.4 <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">503</anchor> Service Unavailable .........................64</li><li>10.5.5 <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">504</anchor> Gateway Timeout .............................64</li><li>10.5.6 <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">505</anchor> HTTP Version Not Supported ..................65</li></ol></li></ol></li><li>11 Access Authentication..................................65<ol><li>11.1 Basic Authentication Scheme ........................66</li><li>11.2 Digest Authentication Scheme .......................67</li></ol></li><li>12 Content Negotiation....................................67<ul><li><code class="WikiPage"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">内容折衝</anchor></code></li></ul><ol><li>12.1 Server-driven Negotiation ..........................68<ul><li><code class="WikiPage"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">サーバー駆動折衝</anchor></code></li></ul></li><li>12.2 Agent-driven Negotiation ...........................69<ul><li><code class="WikiPage"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">エージェント駆動折衝</anchor></code></li></ul></li><li>12.3 Transparent Negotiation ............................70<ul><li><code class="WikiPage"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">透過折衝</anchor></code></li></ul></li></ol></li><li>13 Caching in HTTP........................................70<ol><li>13.1.1 Cache Correctness ...............................72<ol><li>13.1.2 Warnings ........................................73</li><li>13.1.3 Cache-control Mechanisms ........................74</li><li>13.1.4 Explicit User Agent Warnings ....................74</li><li>13.1.5 Exceptions to the Rules and Warnings ............75</li><li>13.1.6 Client-controlled Behavior ......................75</li></ol></li><li>13.2 Expiration Model ...................................75<ol><li>13.2.1 Server-Specified Expiration .....................75</li><li>13.2.2 Heuristic Expiration ............................76</li><li>13.2.3 Age Calculations ................................77</li><li>13.2.4 Expiration Calculations .........................79</li><li>13.2.5 Disambiguating Expiration Values ................80</li><li>13.2.6 Disambiguating Multiple Responses ...............80</li></ol></li><li>13.3 Validation Model ...................................81<ol><li>13.3.1 Last-modified Dates .............................82</li><li>13.3.2 Entity Tag Cache Validators .....................82</li><li>13.3.3 Weak and Strong Validators ......................82</li><li>13.3.4 Rules for When to Use Entity Tags and Last-modified Dates..........................................85</li><li>13.3.5 Non-validating Conditionals .....................86</li></ol></li><li>13.4 Response Cachability ...............................86</li><li>13.5 Constructing Responses From Caches .................87<ol><li>13.5.1 End-to-end and Hop-by-hop Headers ...............88</li><li>13.5.2 Non-modifiable Headers ..........................88</li><li>13.5.3 Combining Headers ...............................89</li><li>13.5.4 Combining Byte Ranges ...........................90</li></ol></li><li>13.6 Caching Negotiated Responses .......................90<ul><li><code class="WikiPage"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">内容折衝//キャッシュ</anchor></code></li></ul></li><li>13.7 Shared and Non-Shared Caches .......................91</li><li>13.8 Errors or Incomplete Response Cache Behavior .......91</li><li>13.9 Side Effects of GET and HEAD .......................92</li><li>13.10 Invalidation After Updates or Deletions ...........92</li><li>13.11 Write-Through Mandatory ...........................93</li><li>13.12 Cache Replacement .................................93</li><li>13.13 History Lists .....................................93</li></ol></li><li>14 Header Field Definitions...............................94<ol><li>14.1 <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">Accept</anchor> .............................................95</li><li>14.2 <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">Accept-Charset</anchor> .....................................97</li><li>14.3 <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">Accept-Encoding</anchor> ....................................97</li><li>14.4 <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">Accept-Language</anchor> ....................................98</li><li>14.5 <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">Accept-Ranges</anchor> ......................................99</li><li>14.6 <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">Age</anchor> ................................................99</li><li>14.7 <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">Allow</anchor> .............................................100</li><li>14.8 <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">Authorization</anchor> .....................................100</li><li>14.9 <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">Cache-Control</anchor> .....................................101<ol><li>14.9.1 What is Cachable ...............................103</li><li>14.9.2 What May be Stored by Caches ...................103</li><li>14.9.3 Modifications of the Basic Expiration Mechanism 104</li><li>14.9.4 Cache Revalidation and Reload Controls .........105</li><li>14.9.5 No-Transform Directive .........................107</li><li>14.9.6 Cache Control Extensions .......................108</li></ol></li><li>14.10 <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">Connection</anchor> .......................................109</li><li>14.11 <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">Content-Base</anchor> .....................................109</li><li>14.12 <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">Content-Encoding</anchor> .................................110</li><li>14.13 <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">Content-Language</anchor> .................................110</li><li>14.14 <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">Content-Length</anchor> ...................................111</li><li>14.15 <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">Content-Location</anchor> .................................112</li><li>14.16 <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">Content-MD5</anchor> ......................................113</li><li>14.17 <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">Content-Range</anchor> ....................................114</li><li>14.18 Content-Type .....................................116<ul><li><code class="WikiPage"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">Content-Type//仕様書から</anchor></code></li></ul></li><li>14.19 <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">Date</anchor> .............................................116</li><li>14.20 <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">ETag</anchor> .............................................117</li><li>14.21 <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">Expires</anchor> ..........................................117</li><li>14.22 <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">From</anchor> .............................................118</li><li>14.23 <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">Host</anchor> .............................................119</li><li>14.24 <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">If-Modified-Since</anchor> ................................119</li><li>14.25 If-Match .........................................121</li><li>14.26 If-None-Match ....................................122</li><li>14.27 If-Range .........................................123</li><li>14.28 If-Unmodified-Since ..............................124</li><li>14.29 Last-Modified ....................................124</li><li>14.30 Location .........................................125</li><li>14.31 Max-Forwards .....................................125</li><li>14.32 Pragma ...........................................126</li><li>14.33 Proxy-Authenticate ...............................127</li><li>14.34 Proxy-Authorization ..............................127</li><li>14.35 Public ...........................................127</li><li>14.36 Range ............................................128<ol><li>14.36.1 Byte Ranges ...................................128</li><li>14.36.2 Range Retrieval Requests ......................130</li></ol></li><li>14.37 Referer ..........................................131</li><li>14.38 Retry-After ......................................131</li><li>14.39 Server ...........................................132</li><li>14.40 Transfer-Encoding ................................132</li><li>14.41 Upgrade ..........................................132</li><li>14.42 User-Agent .......................................134</li><li>14.43 <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">Vary</anchor> .............................................134</li><li>14.44 Via ..............................................135</li><li>14.45 Warning ..........................................137</li><li>14.46 WWW-Authenticate .................................139</li></ol></li><li>15 Security Considerations...............................139<ol><li>15.1 Authentication of Clients .........................139</li><li>15.2 Offering a Choice of Authentication Schemes .......140</li><li>15.3 Abuse of Server Log Information ...................141</li><li>15.4 Transfer of Sensitive Information .................141</li><li>15.5 Attacks Based On File and Path Names ..............142</li><li>15.6 Personal Information ..............................143</li><li>15.7 Privacy Issues Connected to Accept Headers ........143<ul><li><code class="WikiPage"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">Accept-Language</anchor></code></li></ul></li><li>15.8 DNS Spoofing ......................................144</li><li>15.9 Location Headers and Spoofing .....................144</li></ol></li><li>16 Acknowledgments.......................................144</li><li>17 References............................................146</li><li>18 Authors' Addresses....................................149</li><li>19 Appendices............................................150<ol><li>19.1 Internet Media Type message/http ..................150</li><li>19.2 Internet Media Type multipart/byteranges ..........150</li><li>19.3 Tolerant Applications .............................151<ul><li><code class="WikiPage"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">2桁西暦年号の解釈</anchor></code> (抜粋)</li></ul></li><li>19.4 Differences Between HTTP Entities and MIME Entities...........................................152<ol><li>19.4.1 Conversion to Canonical Form ...................152</li><li>19.4.2 Conversion of Date Formats .....................153</li><li>19.4.3 Introduction of Content-Encoding ...............153</li><li>19.4.4 No Content-Transfer-Encoding ...................153</li><li>19.4.5 HTTP Header Fields in Multipart Body-Parts .....153</li><li>19.4.6 Introduction of Transfer-Encoding ..............154</li><li>19.4.7 MIME-Version ...................................154</li></ol></li><li>19.5 Changes from HTTP/1.0 .............................154<ol><li>19.5.1 Changes to Simplify Multi-homed Web Servers and</li><li>Conserve IP Addresses .................................155</li></ol></li><li>19.6 Additional Features ...............................156<ol><li>19.6.1 Additional Request Methods .....................156</li><li>19.6.2 Additional Header Field Definitions ............156<ul><li><code class="WikiPage"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">Content-Version</anchor></code>, <code class="WikiPage"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">Link</anchor></code>, <code class="WikiPage"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">URI:</anchor></code> </li></ul></li></ol></li><li>19.7 Compatibility with Previous Versions ..............160<ol><li>19.7.1 Compatibility with HTTP/1.0 Persistent</li><li>Connections............................................161</li></ol></li></ol></li></ol></section></section><section><h1>RFC 1945 1.; RFC 2068・2616 1 Introduction</h1><section><h1>1.1 Purpose</h1><blockquote><p>The Hypertext Transfer Protocol (HTTP) is an application-level protocol <del>with the lightness and speed necessary</del>
for distributed, collaborative, hypermedia information systems. HTTP has been in use by the World-Wide Web global information initiative since 1990. <del>This specification reflects common usage of the protocol referred too as &quot;HTTP/1.0&quot;. This specification describes the features that seem to be consistently implemented in most HTTP/1.0 clients and servers. The specification is split into two sections. Those features of HTTP for which implementations are usually consistent are described in the main body of this document. Those features which have few or inconsistent implementations are listed in Appendix D.</del> <ins>The first version of HTTP, referred to as HTTP/0.9, was a simple protocol for raw data transfer across the Internet. HTTP/1.0, as defined by RFC 1945 [6], improved the protocol by allowing messages to be in the format of MIME-like messages, containing metainformation about the data transferred and modifiers on the request/response semantics. However, HTTP/1.0 does not sufficiently take into consideration the effects of hierarchical proxies, caching, the need for persistent connections, <del>and</del> <ins>or</ins> virtual hosts. In addition, the proliferation of incompletely-implemented applications calling themselves &quot;HTTP/1.0&quot; has necessitated a protocol version change in order for two communicating applications to determine each other's true capabilities.</ins></p></blockquote><p><dfn>ハイパーテキスト転送プロトコル (HTTP)</dfn> は、分散協調<anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">ハイパー媒体</anchor>情報システム用<del>に必要な軽さと速さを備えた</del><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">応用層</anchor><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">プロトコル</anchor>です。
HTTP は World Wide Web 大域情報活動で 1990 年以来使われています。 <del>この仕様書は 「HTTP/1.0」と呼ばれるプロトコルの共通の使用法を反映しています。この仕様書は、ほとんどの HTTP/1.0 <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">クライアント</anchor>および<anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">鯖</anchor>で安定して実装されていると思われる機能を説明します。仕様書は2つの部分に分けられます。実装が通常安定している HTTP の機能はこの文書の本体で説明します。余り実装されていないか不安定に実装されている機能は附属書 D に挙げます。</del><ins>最初の版の HTTP は、 HTTP/0.9 と呼ばれますが、インターネットを通して生のデータ転送を行う単純なプロトコルでした。 HTTP/1.0 は、 RFC 1945 で定義されていますが、プロトコルを改良してメッセージを MIME 的な書式の、転送されるデータについてのメタ情報や要求・応答の意味についての修飾子を含んだメッセージとできるようにしました。しかし、 HTTP/1.0 は階層的な<anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">串</anchor>, <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">キャッシュ</anchor>, <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">持続接続</anchor>の必要性や<anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">仮想ホスト</anchor>の影響についての十分な考慮がなされていません。加えて、自身を「HTTP/1.0」と呼ぶ不完全に実装された応用の増殖から、二つの通信応用がお互いの真の能力を決定するために、プロトコルの版を変更することが必要となっています。</ins></p><insert xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:"><blockquote xmlns="http://www.w3.org/1999/xhtml"><p>This specification defines the protocol referred to as &quot;HTTP/1.1&quot;.
This protocol includes more stringent requirements than HTTP/1.0 in
order to ensure reliable implementation of its features.</p></blockquote><p xmlns="http://www.w3.org/1999/xhtml">この仕様書は、「HTTP/1.1」と呼ぶプロトコルを定義します。
このプロトコルは、その機能の信頼できる実装を確保するために、 HTTP/1.0
よりも強い要件を含んでいます。</p></insert><blockquote><p>Practical information systems require more functionality than simple
retrieval, including search, front-end update, and annotation. HTTP allows an open-ended set of methods <ins><ins>{2616}</ins> and headers</ins> <del>to be used to</del> <ins>that</ins>
indicate the purpose of a request <ins><ins>{2616}</ins> [47] </ins>. It builds on the discipline of reference provided by the Uniform Resource Identifier (URI) <del><ins>{1945}</ins> [2] </del><ins><ins>{2068,2616}</ins> [3<title xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:10:">DEL[ [20] </title></ins>]], as a location (URL) [4] or name (URN) <del><ins>{1945}</ins> [16] </del> <ins><ins>{2616}</ins> [20] </ins>, for indicating the resource <del>on</del> <ins>to</ins>
which a method is to be applied. Messages are passed in a format similar to that used by Internet <del>Mail [7] and</del> <ins>mail <ins> [9] </ins> as defined by</ins>
the Multipurpose Internet Mail Extensions (MIME) <del><ins>{1945}</ins> [5] </del><ins><ins>{2616}</ins> [7] </ins>.</p></blockquote><p>実際の情報システムは、単純な<anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">取出し</anchor>以上の、<anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">検索</anchor>や前置更新や<anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">注記</anchor>などの機能性を必要とします。
HTTP は、要求の目的を示す<anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">方式</anchor>や<anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">頭</anchor>の開集合を認めています。
HTTP は、位置 (<anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">URL</anchor>) や名前 (<anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">URN</anchor>) として、方式が適用される<anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">資源</anchor>を示す、
統一資源識別子 (<anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">URI</anchor>) によって提供される参照を土台にしています。
<anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">メッセージ</anchor>は、多目的インターネット・メイル拡張 (<anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">MIME</anchor>)
によって定義された、インターネット・メイルで使用されるものと似た書式で渡します。</p><blockquote><p>HTTP is also used as a generic protocol for communication between
user agents and proxies/gateways to other Internet <del>protocols, such as SMTP [12], NNTP [11], FTP [14], Gopher [1], and WAIS [8], allowing</del> <ins>systems, including those supported by the SMTP [16], NNTP [13], FTP [18], Gopher [2], and WAIS [10] protocols. In this way, HTTP allows</ins>
basic hypermedia access to resources available from diverse applications <del>and simplifying the implementation of user agents</del>.</p></blockquote><p>HTTP は、<anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">利用者エージェント</anchor>と <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">SMTP</anchor>, <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">NNTP</anchor>, <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">FTP</anchor>, <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">Gopher</anchor>, <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">WAIS</anchor> のようなプロトコルによって支援されるものを含む、
他のインターネット・システムとの<anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">串</anchor>・<anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">関門</anchor>との間の通信のための汎用プロトコルとしても使われます。
この方法では、 HTTP は異なった応用から利用可能な資源への基本ハイパー媒体接続を認めます。</p><insert xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:"><p xmlns="http://www.w3.org/1999/xhtml">注意: 注記なき変更点は、 RFC 1945 → RFC 2068 のもの。</p></insert></section><section><h1>RFC 2068・2616 1.2 Requirements</h1><delete xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:"><blockquote xmlns="http://www.w3.org/1999/xhtml"><p>This specification uses the same words as RFC 1123 [8] for defining
the significance of each particular requirement. These words are:</p></blockquote><p xmlns="http://www.w3.org/1999/xhtml">この仕様書は、各々の要件の重要度を定義するために <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">RFC1123</anchor>
と同じ言葉を使います。</p><blockquote xmlns="http://www.w3.org/1999/xhtml"><dl><dt>MUST</dt><dd>
This word or the adjective &quot;required&quot; means that the item is an
absolute requirement of the specification.</dd><dt>SHOULD</dt><dd>
This word or the adjective &quot;recommended&quot; means that there may
exist valid reasons in particular circumstances to ignore this
item, but the full implications should be understood and the case
carefully weighed before choosing a different course.</dd><dt>MAY</dt><dd>
This word or the adjective &quot;optional&quot; means that this item is
truly optional. One vendor may choose to include the item because
a particular marketplace requires it or because it enhances the
product, for example; another vendor may omit the same item.</dd></dl></blockquote><dl xmlns="http://www.w3.org/1999/xhtml"><dt><strong>しなければなりません</strong></dt><dd>この言葉や「必須」は、
その項目が仕様の絶対要件であることを意味します。</dd><dt><strong>するべきです</strong></dt><dd>この言葉や「推奨」は、特定の境遇においてはその項目を無視する妥当な理由が存在するかもしれないけれども、完全な実装は異なる道を選ぶ前に理解し、注意深く重み付けするべきであることを意味します。</dd><dt><strong>して構いません</strong></dt><dd>この言葉や「任意選択」は、その項目が本当に任意選択であることを意味します。ある販売者は特定の市場がそれを必要としているからとか製品を普及させるからとかそんなような理由でその項目を含めることを選ぶかもしれません。他の販売者はその項目を省くかもしれません。</dd></dl></delete><insert xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:"><blockquote xmlns="http://www.w3.org/1999/xhtml"><p>The key words &quot;MUST&quot;, &quot;MUST NOT&quot;, &quot;REQUIRED&quot;, &quot;SHALL&quot;, &quot;SHALL NOT&quot;,
&quot;SHOULD&quot;, &quot;SHOULD NOT&quot;, &quot;RECOMMENDED&quot;, &quot;MAY&quot;, and &quot;OPTIONAL&quot; in this
document are to be interpreted as described in RFC 2119 [34].</p></blockquote><p xmlns="http://www.w3.org/1999/xhtml">この文書中の見出し語 <strong>しなければなりません</strong>, <strong>してはなりません</strong>,
<strong>する必要があります</strong>, <strong>するべきです</strong>, <strong>するべきではありません</strong>,
<strong>推奨します</strong>, <strong>して構いません</strong>, <strong>'任意選択</strong>は、 <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">RFC2119</anchor>]]
で説明されている通り解釈します。</p></insert><blockquote><p>An implementation is not compliant if it fails to satisfy one or more
of the MUST <ins>or REQUIRED level</ins> requirements for the protocols it implements. An
implementation that satisfies all the MUST <ins>or REQUIRED level</ins> and all the SHOULD <ins>level</ins>
requirements for its protocols is said to be &quot;unconditionally
compliant&quot;; one that satisfies all the MUST <ins>level</ins> requirements but not all
the SHOULD <ins>level</ins> requirements for its protocols is said to be
&quot;conditionally compliant.&quot;</p></blockquote><p>ある実装は、その実装するプロトコルの<strong>しなければなりません</strong>や<strong>する必要があります</strong>の水準の要件を一つでも満足していなければ、適合しません。
プロトコルのすべての<strong>しなければなりません</strong>や<strong>する必要があります</strong>の水準の要件並びにすべての<strong>するべきです</strong>水準の要件を満足する実装は、
<dfn>非条件付適合</dfn>といいます。プロトコルのすべての<strong>しなければなりません</strong>水準の要件を満たすもののすべての<strong>するべきです</strong>水準の要件は満足しないものは<dfn>条件付適合</dfn>といいます。</p></section><section><h1>RFC 1945 1.2; RFC 2068・2616 1.3 Terminology</h1><blockquote><p>This specification uses a number of terms to refer to the roles
played by participants in, and objects of, the HTTP communication.</p></blockquote><p>この仕様書は、 HTTP 通信に関係したり、対象となったりする役割を指す数々の言葉を使います。</p><p><code class="WikiPage"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">接続</anchor></code>, <code class="WikiPage"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">メッセージ</anchor></code>, <code class="WikiPage"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">要求</anchor></code>, <code class="WikiPage"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">応答</anchor></code>, <code class="WikiPage"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">資源</anchor></code>, <code class="WikiPage"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">実体</anchor></code>, <code class="WikiPage"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">表現</anchor></code>, <code class="WikiPage"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">内容折衝</anchor></code>, <code class="WikiPage"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">変種</anchor></code>, <code class="WikiPage"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">クライアント</anchor></code>, <code class="WikiPage"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">利用者エージェント</anchor></code>, <code class="WikiPage"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">サーバー</anchor></code>, <code class="WikiPage"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">起源サーバー</anchor></code>,<code class="WikiPage"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">串</anchor></code>,  <code class="WikiPage"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">関門</anchor></code>, <code class="WikiPage"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">トンネル</anchor></code>, <code class="WikiPage"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">キャッシュ</anchor></code>, <code class="WikiPage"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">キャッシュ可能</anchor></code>, <code class="WikiPage"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">初手</anchor></code>, <code class="WikiPage"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">明示満期時刻</anchor></code>, <code class="WikiPage"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">発見的満期時刻</anchor></code>, <code class="WikiPage"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">齢</anchor></code>, <code class="WikiPage"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">新鮮寿命</anchor></code>, <code class="WikiPage"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">新鮮</anchor></code>, <code class="WikiPage"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">腐敗</anchor></code>, <code class="WikiPage"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">意味的透過</anchor></code>, <code class="WikiPage"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">検証子</anchor></code>, <code class="WikiPage"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">上流</anchor></code>, <code class="WikiPage"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">上り</anchor></code></p></section><section><h1>RFC 1945 1.3; RFC 2068・2616 1.4 Overall Operation</h1><blockquote><p>The HTTP protocol is <del>based on</del> a request/response <del>paradigm</del> <ins>protocol</ins>. A client <del>establishes a connection with a server and</del>
sends a request to the server in the form of a request method, URI, and
protocol version, followed by a MIME-like message containing request
modifiers, client information, and possible body
content <ins>over a connection with a server</ins>.
The server responds with a status line, including the message's protocol version
and a success or error code, followed by a MIME-like message containing server
information, entity metainformation, and possible <ins>entity-</ins>body content. <ins>The relationship between HTTP and MIME is described in appendix 19.4.</ins></p></blockquote><p>HTTP プロトコルは、要求・応答プロトコルです。
クライアントは、要求<anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">方式</anchor>, <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">URI</anchor>, プロトコルの版,
それに続けて要求修飾子・クライアント情報・場合によっては<anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">本体</anchor>内容を含む MIME 的メッセージという書式で、鯖との<anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">接続</anchor>上で鯖に要求を送ります。
鯖は、メッセージのプロトコル版と成功または誤りの符号を含んだ<anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">状態行</anchor>と、
それに続けて鯖情報・実体のメタ情報・場合によっては <code class="ABNF"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">entity-body</anchor></code>
内容を含んだ MIME 的メッセージで応答します。</p><blockquote><p>Most HTTP communication is initiated by a user agent and consists of
a request to be applied to a resource on some origin server. In the
simplest case, this may be accomplished via a single connection (v)
between the user agent (UA) and the origin server (O).</p></blockquote><p>ほとんどの HTTP 通信は、<anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">利用者エージェント</anchor>によって初期化され、
<anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">起源鯖</anchor>の<anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">資源</anchor>に適用される要求で構成します。
最も単純な場合、これは利用者エージェント (<var>UA</var>) と起源鯖
(<var>O</var>) の間の一つの接続 (<var>v</var>) により達成されます。</p><blockquote><pre>   request chain ------------------------&gt;
UA -------------------v------------------- O
   &lt;----------------------- response chain</pre></blockquote><blockquote><p>A more complicated situation occurs when one or more intermediaries
are present in the request/response chain. There are three common
forms of intermediary: proxy, gateway, and tunnel. A proxy is a
forwarding agent, receiving requests for a URI in its absolute form,
rewriting all or part<del>s</del> of the message, and forwarding the reformatted
request toward the server identified by the URI. A gateway is a
receiving agent, acting as a layer above some other server(s) and, if
necessary, translating the requests to the underlying server's
protocol. A tunnel acts as a relay point between two connections
without changing the messages; tunnels are used when the
communication needs to pass through an intermediary (such as a
firewall) even when the intermediary cannot understand the contents of the messages.</p></blockquote><p>もっと複雑な状況は、一つ以上の中間媒介者が要求・応答鎖にいるときに起こります。
媒介者には3つの共通形態: <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">串</anchor>, <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">関門</anchor>, <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">トンネル</anchor>があります。
<dfn>串</dfn>は、転送エージェントで、 <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">URI</anchor> への要求を絶対形で受け取り、
メッセージの全部又は一部を書き換え、その再書式付けした要求を URI
で識別される鯖の方向に転送します。<dfn>関門</dfn>は、
受信エージェントで、他の鯖(群)上の層として働き、必要であれば要求をその鯖への湯汲に翻訳します。
<dfn>トンネル</dfn>は、メッセージを変更せず、二つの接続の間の中継点として動作します。
トンネルは、媒介者 (例えば<anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">防火壁</anchor>) がメッセージの内容を理解できないときであっても通信がその媒介者を通過する必要があるときに使います。</p><blockquote><pre>   request chain --------------------------------------&gt;
UA -----v----- A -----v----- B -----v----- C -----v----- O
   &lt;------------------------------------- response chain</pre></blockquote><blockquote><p>The figure above shows three intermediaries (A, B, and C) between the
user agent and origin server. A request or response message that
travels the whole chain <del>must</del> <ins>will</ins> pass through four separate connections.
This distinction is important because some HTTP communication options
may apply only to the connection with the nearest, non-tunnel
neighbor, only to the end-points of the chain, or to all connections
along the chain.  Although the diagram is linear, each participant may
be engaged in multiple, simultaneous communications. For example, B
may be receiving requests from many clients other than A, and/or
forwarding requests to servers other than C, at the same time that it is handling A's request.</p></blockquote><p>上の図は、利用者エージェントと鯖の間の3つの媒介者 (<var>A</var>, <var>B</var>, <var>C</var>)
を示しています。鎖全体を旅する要求や応答のメッセージは、4つの別個の接続を通過します。
HTTP 通信選択肢の中には直近の非トンネル隣人との接続にだけ適用されるものや鎖の終端ののみ適用されるものや鎖に沿うすべての接続に適用されるものがありますから、
この区別は重要です。図は線形ですが、各関係は複数同時通信であっても構いません。
例えば、 <var>B</var> は、 <var>A</var> の要求を扱うのと同時に、 <var>A</var> 以外の多くのクライアントから要求を受信するかもしれませんし、 <var>C</var> 以外の鯖へ要求を転送するかもしれません。</p><blockquote><p>Any party to the communication which is not acting as a tunnel may
employ an internal cache for handling requests. The effect of a cache
is that the request/response chain is shortened if one of the
participants along the chain has a cached response applicable to that
request. The following illustrates the resulting chain if B has a
cached copy of an earlier response from O (via C) for a request which
has not been cached by UA or A.</p></blockquote><p>トンネルとして動作しているのではない任意の通信当事者は、
要求を扱うために内部<anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">キャッシュ</anchor>を使用しても構いません。
キャッシュの効果は、鎖上の誰かがその要求に適用可能なキャッシュされた応答を持っていれば要求・応答鎖が短絡することです。
次は、 <var>UA</var> や <var>A</var> がキャッシュしていないけれども <var>B</var> が前の <var>O</var> からの (<var>C</var> を介した) 応答のキャッシュ複製を持っていた場合の結果の鎖を描いています。</p><blockquote><pre>   request chain ----------&gt;
UA -----v----- A -----v----- B - - - - - - C - - - - - - O
   &lt;--------- response chain</pre></blockquote><blockquote><p>Not all responses are <ins>usefully</ins>
cach<ins>e</ins>able <ins>{2616}</ins>, and some requests may contain modifiers which place special requirements on cache behavior. <del>Some HTTP/1.0 applications use heuristics to describe what is or is not a &quot;cachable&quot; response, but these rules are not standardized.</del> <ins>HTTP requirements for cache behavior and cach<ins>e</ins>able responses are defined in section 13.</ins></p></blockquote><p>すべての応答が有用に<anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">キャッシュ可能</anchor>であるわけではなく、
要求はキャッシュの振舞いに特別な要件を課す修飾子を含むかもしれません。<del>HTTP/1.0 応用の中には何が「キャッシュ可能」で何がそうでないかを記述する発見的方法を使うものもありますが、その規則は標準化されていません。</del> <ins>キャッシュの振舞いやキャッシュ可能応答についての HTTP の要件は13章で定義します。</ins></p><insert xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:"><blockquote xmlns="http://www.w3.org/1999/xhtml"><p>In fact, there are a wide variety of architectures and configurations
of caches and proxies currently being experimented with or deployed
across the World Wide Web<del>;</del><ins>.</ins> <del>these</del> <ins>These</ins> systems include national hierarchies
of proxy caches to save transoceanic bandwidth, systems that
broadcast or multicast cache entries, organizations that distribute
subsets of cached data via CD-ROM, and so on. HTTP systems are used
in corporate intranets over high-bandwidth links, and for access via
PDAs with low-power radio links and intermittent connectivity. The
goal of HTTP/1.1 is to support the wide diversity of configurations
already deployed while introducing protocol constructs that meet the
needs of those who build web applications that require high
reliability and, failing that, at least reliable indications of failure.</p></blockquote><p xmlns="http://www.w3.org/1999/xhtml">実際、様々な種類のキャッシュや串の体系や構成が現在 World Wide Web
で実験されたり使用されたりしています。それらのシステムには、
渡海帯域を節約するための串キャッシュの国家的階層や、
キャッシュ項目を broadcast や multicast するシステム、
キャッシュデータの部分集合を <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">CD-ROM</anchor> で配布する組織などなどを含みます。
HTTP システムは広帯域連結上の<anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">イントラネット</anchor>と協同して使われたり、
低力無線連結や断続的接続の <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">PDA</anchor> を介して接続されたりします。
HTTP/1.1 の目標は、高い信頼性や、それが無理でも少なくても確実に失敗を示すことが必要なウェブ応用を構築する人の需要に合致するプロトコル構造を導入しつつ、既に用いられている多用な構成に対応することです。</p></insert><blockquote><p><del>On the Internet,</del> HTTP communication <del>generally</del> <ins>usually</ins>
takes place over TCP/IP connections. The default port is TCP 80 <del><ins>{1945}</ins> [15] </del><ins><ins>{2616}</ins> [19] </ins>, but other ports can be used. This does not preclude HTTP from being implemented on top of any other protocol on
the Internet, or on other networks. HTTP only presumes a reliable
transport; any protocol that provides such guarantees can be used<ins>;</ins><del>, and</del> the mapping of the <del>HTTP/1.0</del> <ins>HTTP/1.1</ins>
request and response structures onto the transport data units of the protocol in
question is outside the scope of this specification.</p></blockquote><p>HTTP 通信は通常 <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">TCP/IP</anchor> 接続上で行われます。既定<anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">ポート</anchor>は TCP <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">80</anchor>
ですが、他のポートを使うこともできます。
これは、 HTTP をインターネットのほかのプロトコルや他のネットワークの上に実装することを妨げるものではありません。 HTTP は、信頼できる輸送路だけを仮定します。
それを保証できる任意のプロトコルを使うことができます。
HTTP 要求・応答構造から件のプロトコルの輸送データ単位への写像はこの仕様書の適用範囲外です。</p><delete xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:"><blockquote xmlns="http://www.w3.org/1999/xhtml"><p>Except for experimental applications, current practice requires that
the connection be established by the client prior to each request and
closed by the server after sending the response. Both clients and
servers should be aware that either party may close the connection
prematurely, due to user action, automated time-out, or program
failure, and should handle such closing in a predictable fashion. In
any case, the closing of the connection by either or both parties
always terminates the current request, regardless of its status.</p></blockquote><p xmlns="http://www.w3.org/1999/xhtml">実験的応用を除き、現在の運用では接続はクライアントが各要求の前に確立し、
鯖が応答を送った後に閉じることを必要としています。
クライアントも鯖も、どちらもが利用者の動作や自動時間切れやプログラムの失敗によって接続を早く閉じても構わないことに注意するべきであり、
そのような閉じ方を想定して取り扱うべきです。どんな場合でも、
当事者の一方又は両方が接続を閉じることは常に現在の要求をその状態にかかわらず終端させます。</p></delete><insert xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:"><blockquote xmlns="http://www.w3.org/1999/xhtml"><p>In HTTP/1.0, most implementations used a new connection for each
request/response exchange. In HTTP/1.1, a connection may be used for
one or more request/response exchanges, although connections may be
closed for a variety of reasons (see section 8.1).</p></blockquote><p xmlns="http://www.w3.org/1999/xhtml">HTTP/1.0 では、ほとんどの実装は各要求・応答交換に新しい接続を使っていました。
HTTP/1.1 では、種々の理由で接続を閉じても構いませんが、
一つの接続を一つ以上の要求・応答交換に使っても構いません。</p></insert><insert xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:"><p xmlns="http://www.w3.org/1999/xhtml">注: 注記のない変更点は、 RFC 1945 → RFC 2068 でのもの。</p></insert></section><section><h1>RFC 1945 1.4  HTTP and MIME</h1><blockquote><p>HTTP/1.0 uses many of the constructs defined for MIME, as defined in
RFC 1521 [5]. Appendix C describes the ways in which the context of
HTTP allows for different use of Internet Media Types than is
typically found in Internet mail, and gives the rationale for those differences.</p></blockquote><p>HTTP/1.0 は、 MIME で定義された多くの構造を使っています。
附属書 C は、インターネット<anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">媒体型</anchor>が HTTP という文脈でインターネット・メイルで典型的に見られる場合とどう違って使われることを認めているかを説明し、その差異の理由を解説します。</p></section><section><h1>RFC 1945 (HTTP/1.0) B.; RFC 2068・RFC 2616 (HTTP/1.1) 19.3 Tolerant Applications</h1><blockquote><p>Although this document specifies the requirements for the generation
of <del><ins>{1945}</ins> HTTP/1.0</del> <ins>HTTP/1.1</ins> messages, not all applications will be correct in their
implementation. We therefore recommend that operational applications
be tolerant of deviations whenever those deviations can be
interpreted unambiguously.</p></blockquote><p>この文書は HTTP メッセージの生成での要件を規定していますが、
すべての<anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">応用</anchor>が正しく実装してはいません。従って、
運用応用は逸脱に寛容であっても曖昧なく解釈できるのであるときには常に<anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">寛容</anchor>であることを推奨します。</p><blockquote><p>Clients <del><ins>{1945}</ins> should</del> <ins>SHOULD</ins> be tolerant in parsing the Status-Line and servers
tolerant when parsing the Request-Line. In particular, they <del><ins>{1945}</ins> should</del> <ins>SHOULD</ins>
accept any amount of SP or HT characters between fields, even though
only a single SP is required.</p></blockquote><p><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">クライアント</anchor>は <code class="ABNF"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">Status-Line</anchor></code> の解析において、
<anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">鯖</anchor>は <code class="ABNF"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">Request-Line</anchor></code> の解析において、それぞれ寛容である<strong>べきです</strong>。
特に、単一の <code class="ABNF"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">SP</anchor></code> のみが必要である場合であっても、
任意の量の <code class="ABNF">SP</code> や <code class="ABNF"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">HT</anchor></code> を受け入れる<strong>べきです</strong>。</p><blockquote><p>The line terminator for <del><ins>{1945}</ins> HTTP-header</del> <ins>message-header</ins> fields is the sequence CRLF.
However, we recommend that applications, when parsing such headers,
recognize a single LF as a line terminator and ignore the leading CR.</p></blockquote><p><code class="ABNF">message-header</code> 欄の行終端子は、列 <code class="ABNF"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">CRLF</anchor></code>
です。しかし、応用は、そのような頭を解析するときには、
単一の <code class="ABNF">LF</code> を行終端子と認識し、先導する <code class="ABNF">CR</code>
を無視することを推奨します。</p><insert xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:"><blockquote xmlns="http://www.w3.org/1999/xhtml"><p>The character set of an entity-body <del>should</del> <ins>SHOULD</ins> be labeled as the lowest
common denominator of the character codes used within that body, with
the exception that <del>no label</del> <ins>not labeling the entity</ins> is preferred over <ins>labeling the entity with</ins> the labels US-ASCII or ISO-8859-1. <ins>See section 3.7.1 and 3.4.1.</ins></p></blockquote><p xmlns="http://www.w3.org/1999/xhtml"><code class="ABNF"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">entity-body</anchor></code> の<anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">文字集合</anchor>は、
その本体で使われている文字符号の最小公倍数で札付けする<strong>べきです</strong>。
但し、実体を札 <code class="charset"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">US-ASCII</anchor></code> や札
<code class="charset"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">ISO-8859-1</anchor></code> で札付けするよりは札付けしないほうが好ましいです。</p><blockquote xmlns="http://www.w3.org/1999/xhtml"><p>Additional rules for requirements on parsing and encoding of dates
and other potential problems with date encodings include:</p></blockquote><p xmlns="http://www.w3.org/1999/xhtml">日付を構文解析するに当たっての追加の規則や日付符号化の他の問題の可能性:</p><blockquote xmlns="http://www.w3.org/1999/xhtml"><ul><li><del>o</del> <ins>-</ins> HTTP/1.1 clients and caches <del>should</del> <ins>SHOULD</ins> assume that an RFC-850 date
which appears to be more than 50 years in the future is in fact
in the past (this helps solve the &quot;year 2000&quot; problem).</li><li><del>o</del> <ins>-</ins> An HTTP/1.1 implementation <del>may</del> <ins>MAY</ins> internally represent a parsed
Expires date as earlier than the proper value, but MUST NOT
internally represent a parsed Expires date as later than the proper value.</li><li><del>o</del> <ins>-</ins> All expiration-related calculations <del>must</del> <ins>MUST</ins> be done in GMT. The
local time zone MUST NOT influence the calculation or comparison
of an age or expiration time.</li><li><del>o</del> <ins>-</ins> If an HTTP header incorrectly carries a date value with a time
zone other than GMT, it <del>must</del> <ins>MUST</ins> be converted into GMT using the most
conservative possible conversion.</li></ul></blockquote><ul xmlns="http://www.w3.org/1999/xhtml"><li>HTTP/1.1 クライアントおよびキャッシュは、50年よりも将来に見える <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">RFC850</anchor>
日付は実際は過去のものとみなす<strong>べきです</strong> (これは<anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">2000年問題</anchor>を解決するのを助けます)。</li><li>HTTP/1.1 実装は解析した <code class="HTTP"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">Expires</anchor></code> 日付を適切な値よりも前のものとして内部的に表現しても<strong>構いません</strong>が、解析した <code class="HTTP">Expires</code> 日付を適切な値よりも後のものとして内部的に表現しては<strong>いけません</strong>。</li><li>すべての<anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">満期</anchor>関連の計算は <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">GMT</anchor> で行わなければ<strong>なりません</strong>。
<anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">地方時間</anchor>帯が<anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">齢</anchor>や<anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">満期時刻</anchor>の計算や比較に影響しては<strong>なりません</strong>。</li><li>HTTP 頭が不正に GMT 以外の時間帯で日付値を伝達しているときは、
最も用心深い可能な変換を用いて GMT に変換しなければ<strong>なりません</strong>。</li></ul></insert></section><section><h1>RFC 1945 (HTTP/1.0) D.; RFC 2068 (HTTP/1.1) 19.6; RFC 2616 (HTTP/1.1) 19.5 Additional Features</h1><blockquote><p><del>This appendix documents</del> <ins><ins>{2616}</ins> RFC 1945 and RFC 2068 document</ins> protocol elements used by some existing HTTP
implementations, but not consistently and correctly across most <del>HTTP/1.0</del> <ins>HTTP/1.1</ins> applications. <del><del>Implementors</del> <ins>Implementers</ins> should</del> <ins>Implementors are advised to</ins> be aware of these
features, but cannot rely upon their presence in, or interoperability
with, other <del>HTTP/1.0</del> <ins>HTTP/1.1</ins> applications. <ins>Some of these describe proposed experimental features, and some describe features that experimental deployment found lacking that are now addressed in the base HTTP/1.1 specification.</ins></p></blockquote><p><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">RFC1945</anchor> と <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">RFC2068</anchor> は、既存の HTTP 実装で使われているものの、
ほとんどの HTTP 実装に渡って安定して正しく実装されていないプロトコル要素を文書化しています。
実装者は、それらの機能を知っておくことをお勧めしておきますが、
その存在や他の HTTP 応用との相互通信性はあてにはなりません。<ins>そのうちの幾つかは提案されている実験的機能を説明するもので、幾つかは実験的展開が欠けていることを発見した機能で今は基底 HTTP/1.1 仕様書に言及されているものを説明しています。</ins></p><insert xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:"><blockquote xmlns="http://www.w3.org/1999/xhtml"><p><ins>{2616}</ins>  A number of other headers, such as Content-Disposition and Title,
from SMTP and MIME are also often implemented (see RFC 2076 [37]).</p></blockquote><p xmlns="http://www.w3.org/1999/xhtml"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">SMTP</anchor> や <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">MIME</anchor> からの他の多くの頭、例えば <code class="HTTP"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">Content-Disposition</anchor></code>
や <code class="HTTP"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">Title</anchor></code> のようなものもしばしば実装されています
(<anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">RFC2076</anchor> 参照)。</p></insert><section><h1>RFC 1945 (HTTP/1.0) D.1; RFC 2068 (HTTP/1.1) 19.6.1 Additional Request Methods</h1><p>→<code class="WikiPage"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">PUT</anchor></code>, <code class="WikiPage"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">PATCH</anchor></code>, <code class="WikiPage"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">DELETE</anchor></code>, <code class="WikiPage"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">LINK</anchor></code>, <code class="WikiPage"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">UNLINK</anchor></code></p></section><section><h1>RFC 1945 (HTTP/1.0) D.2; RFC 2068 (HTTP/1.1) 19.6.2 Additional Header Field Definitions</h1><p>→<code class="WikiPage"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">Alternates</anchor></code>, <code class="WikiPage"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">Content-Version</anchor></code>, <code class="WikiPage"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">Derived-From</anchor></code>, <code class="WikiPage"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">Link</anchor></code>, <code class="WikiPage"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">Title</anchor></code>, <code class="WikiPage"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">URI</anchor></code>, <code class="WikiPage"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">Accept</anchor></code>, <code class="WikiPage"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">Accept-Charset</anchor></code>, <code class="WikiPage"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">Accept-Encoding</anchor></code>, <code class="WikiPage"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">Accept-Language</anchor></code>, <code class="WikiPage"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">Content-Language</anchor></code>, <code class="WikiPage"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">MIME-Version</anchor></code>, <code class="WikiPage"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">Retry-After</anchor></code></p></section><section><h1>RFC 2616 (HTTP/1.1) 19.5.1 Content-Disposition</h1><p>→<code class="WikiPage"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">Content-Disposition</anchor></code></p></section></section><section><h1>RFC 2068 (HTTP/1.1) 19.7; RFC 2616 (HTTP/1.1) 19.6 Compatibility with Previous Versions</h1><blockquote><p>It is beyond the scope of a protocol specification to mandate
compliance with previous versions. HTTP/1.1 was deliberately
designed, however, to make supporting previous versions easy. It is
worth noting that at<ins>,</ins> the time of composing this specification <ins>(1996)</ins>,
we would expect commercial HTTP/1.1 servers to:</p></blockquote><p>以前の版への適合を強制するのはプロトコル仕様書の適用範囲外です。
しかし、 HTTP/1.1 は以前の版に容易に対応できるように故意に設計しています。
この仕様書の編纂 (1996年) の時点では、商用 HTTP/1.1
鯖に次のことを期待していると注記する価値はあるでしょう。</p><blockquote><ul><li><del>o</del> <ins>-</ins>
recognize the format of the Request-Line for HTTP/0.9, 1.0, and 1.1</li><li><del>o</del> <ins>-</ins>
understand any valid request in the format of HTTP/0.9, 1.0, or 1.1;</li><li><del>o</del> <ins>-</ins>
respond appropriately with a message in the same major version
used by the client.</li></ul></blockquote><ul><li>HTTP/0.9, 1.0 および 1.1 の <code class="ABNF"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">Request-Line</anchor></code> の書式を認識すること</li><li>HTTP/0.0, 1.0 および 1.1 の書式の任意の妥当な<anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">要求</anchor>を理解すること</li><li>クライアントが使っているのと同じ大版のメッセージに適切に応答するこ</li></ul><blockquote><p>And we would expect HTTP/1.1 clients to:</p></blockquote><p>そして、 HTTP/1.1 には次のことを期待します。</p><blockquote><ul><li><del>o</del> <ins>-</ins>
recognize the format of the Status-Line for HTTP/1.0 and 1.1 responses;</li><li><del>o</del> <ins>-</ins>
understand any valid response in the format of HTTP/0.9, 1.0, or 1.1.</li></ul></blockquote><ul><li>HTTP/1.0 および 1.1 の応答の <code class="ABNF"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">Status-Line</anchor></code>
の書式を認識すること</li><li>HTTP/0.9, 1.0 または 1.1 の任意の妥当な応答を理解すること</li></ul><blockquote><p>For most implementations of HTTP/1.0, each connection is established
by the client prior to the request and closed by the server after
sending the response. <del>A few</del> <ins>Some</ins> implementations implement the Keep-Alive
version of persistent connections described in section <del>19.7.1.1</del> <ins>19.7.1 of RFC 2068 [33] </ins>.</p></blockquote><p>HTTP/1.0 のほとんどの実装では、各<anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">接続</anchor>はクライアントが<anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">要求</anchor>の前に確立し、
<anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">鯖</anchor>が<anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">応答</anchor>を送信した後に閉じます。幾つかの実装は
<code class="HTTP"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">Keep-Alive</anchor></code> 版の<anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">持続接続</anchor>を実装しています。</p><section><h1>RFC 2068 19.5; RFC 2616 19.6.1 Changes from HTTP/1.0</h1><blockquote><p>This section summarizes major differences between versions HTTP/1.0 and HTTP/1.1.</p></blockquote><p>この節では、 HTTP/1.0 と HTTP/1.1 の間の大きな違いをまとめます。</p><section><h1>RFC 2068 19.5.1; RFC 2616 19.6.1.1 Changes to Simplify Multi-homed Web Servers and Conserve IP Addresses</h1><blockquote><p>The requirements that clients and servers support the Host request-header, report an error if the Host request-header (section 14.23) is
missing from an HTTP/1.1 request, and accept absolute URIs (section
5.1.2) are among the most important changes defined by this specification.</p></blockquote><p>クライアントと鯖が <code class="HTTP"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">Host</anchor></code> 要求頭に対応し、
<code class="HTTP">Host</code> 要求頭が HTTP/1.1 要求で欠けていたら誤りを報告し、
<anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">絶対URI</anchor> を受け入れるという要件がこの仕様書で定義される中でもっとも重要な変更です。</p><blockquote><p>Older HTTP/1.0 clients assumed a one-to-one relationship of IP
addresses and servers; there was no other established mechanism for
distinguishing the intended server of a request than the IP address
to which that request was directed. The changes outlined above will
allow the Internet, once older HTTP clients are no longer common, to
support multiple Web sites from a single IP address, greatly
simplifying large operational Web servers, where allocation of many
IP addresses to a single host has created serious problems. The
Internet will also be able to recover the IP addresses that have been
allocated for the sole purpose of allowing special-purpose domain
names to be used in root-level HTTP URLs. Given the rate of growth of
the Web, and the number of servers already deployed, it is extremely
important that all implementations of HTTP (including updates to
existing HTTP/1.0 applications) correctly implement these requirements:</p></blockquote><p>古めの HTTP/1.0 クライアントは、 IP 番地と鯖の一対一対応関係を仮定しています。
要求が向けられた IP 番地以外に要求の意図している鯖を区別する確立された方法はありませんでした。
上に概説した変更は、ひとたび古い HTTP クライアントがもう広くは使われなくなれば、
インターネットが複数の <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">Webサイト</anchor>を一つの IP 番地で対応することを認めるものです。
多くの IP 番地を一つのホストに割当てることは重大な問題を起こしているところですが、
大規模運用 <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">Web鯖</anchor>が非常に単純化されます。特別な目的のドメイン名を根水準
HTTP URL で使用することを認める目的だけで割当てられている IP
番地をインターネットが回復することもできます。 <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">Web</anchor>
の成長率と既に使われている鯖の数を鑑みると、 HTTP
のすべての実装 (既存の HTTP/1.0 応用の更新も含む。) が次の要件を正しく実装することがきわめて重要であります。</p><blockquote><ul><li><del>o</del> <ins>-</ins><pre> Both clients and servers MUST support the Host request-header.
- <del>o Host request-headers are required in HTTP/1.1 requests.</del> <ins>- A client that sends an HTTP/1.1 request MUST send a Host header.</ins>
- <del>o</del> <ins>-</ins>
Servers MUST report a 400 (Bad Request) error if an HTTP/1.1
request does not include a Host request-header.
- <del>o</del> <ins>-</ins>
Servers MUST accept absolute URIs.</pre></li></ul></blockquote><ul><li>クライアントと鯖の両方が <code class="HTTP"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">Host</anchor></code> 要求頭に対応しなければ<strong>ならない</strong>。</li><li>HTTP/1.1 要求を送信するクライアントは <code class="HTTP">Host</code> 頭を送らなければ<strong>ならない</strong>。</li><li>鯖は、 HTTP/1.1 要求が <code class="HTTP">Host</code> 要求頭を含まないなら <code class="HTTP"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">400</anchor></code>
(悪い要求) 誤りを報告しなければ<strong>ならない</strong>。</li></ul></section></section><section><h1>RFC 2068 19.7.1; RFC 2616 19.6.2 Compatibility with HTTP/1.0 Persistent Connections</h1><p>→<code class="WikiPage"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">Connection</anchor></code></p><section><section><h1>RFC 2068 19.7.1.1 The Keep-Alive Header</h1><p>→<code class="WikiPage"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">Keep-Alive</anchor></code></p></section></section></section><section><h1>RFC 2616 19.6.3 Changes from RFC 2068</h1><blockquote><p>This specification has been carefully audited to correct and
disambiguate key word usage; RFC 2068 had many problems in respect to
the conventions laid out in RFC 2119 [34].</p></blockquote><p>この仕様書は、注意深く精査して修正し、見出し語の使用に曖昧さがないようにしています。
RFC 2068 は、<anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">RFC2119</anchor> で示された表記法に関して多くの問題を抱えていました。</p><blockquote><p>Clarified which error code should be used for inbound server failures
(e.g. DNS failures). (Section 10.5.5).</p></blockquote><p><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">上り</anchor>鯖失敗 (例えば <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">DNS</anchor> 失敗) でどの誤り符号を使うべきかを明確化。</p><blockquote><p>CREATE had a race that required an Etag be sent when a resource is
first created. (Section 10.2.2).</p></blockquote><p>CREATE <ins>(訳注: <code class="HTTP"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">201</anchor></code> (作成済み) 応答)</ins> は<anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">資源</anchor>が最初に作成される時に <code class="HTTP">Etag</code> を送ることを必要としている点で競合がありました。</p><blockquote><p>Content-Base was deleted from the specification: it was not
implemented widely, and there is no simple, safe way to introduce it
without a robust extension mechanism. In addition, it is used in a
similar, but not identical fashion in MHTML [45].</p></blockquote><p><code class="HTTP"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">Content-Base</anchor></code> は仕様書から削除しました。
この欄は広く実装されていませんでしたし、
強力な拡張機構抜きでこれを導入するための簡単で安全な方法はありません。
加えて、この欄は <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">MHTML</anchor> でも似ているものの同じではない方法で使われています。</p><blockquote><p>Transfer-coding and message lengths all interact in ways that
required fixing exactly when chunked encoding is used (to allow for
transfer encoding that may not be self delimiting); it was important
to straighten out exactly how message lengths are computed. (Sections
3.6, 4.4, 7.2.2, 13.5.2, 14.13, 14.16)</p></blockquote><p><code class="ABNF">transfer-coding</code> とメッセージの長さはすべて、
(自己区切的でないかもしれない<anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">転送符号化</anchor>を認めるために)
正確にいつ <code class="HTTP"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">chunked</anchor></code> 符号化が使われるかを修正することが必要な形で相互作用します。
正確にどうメッセージの長さを計算するかを調整することが重要でした。</p><blockquote><p>A content-coding of &quot;identity&quot; was introduced, to solve problems
discovered in caching. (section 3.5)</p></blockquote><p><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">キャッシュ</anchor>の問題を解決するために <code class="HTTP"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">identity</anchor></code>
<code class="ABNF"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">content-coding</anchor></code> が導入されました。</p><blockquote><p>Quality Values of zero should indicate that &quot;I don't want something&quot;
to allow clients to refuse a representation. (Section 3.9)</p></blockquote><p><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">品質値</anchor>零は、利用者が<anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">表現</anchor>を拒絶することを認めるために、
「私は何も望みません」を示すべきです。</p><blockquote><p>The use and interpretation of HTTP version numbers has been clarified
by RFC 2145. Require proxies to upgrade requests to highest protocol
version they support to deal with problems discovered in HTTP/1.0
implementations (Section 3.1)</p></blockquote><p>HTTP 版番号の使用と解釈が <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">RFC2145</anchor> で明確化されています。
串は、 HTTP/1.0 実装に見つかった問題に対処するために、
最高のプロトコルの版に更新することが必要です。</p><blockquote><p>Charset wildcarding is introduced to avoid explosion of character set
names in accept headers. (Section 14.2)</p></blockquote><p>文字集合名が受入れ頭で爆発するのを避けるために charset
<anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">鬼札</anchor>を導入します。</p><blockquote><p>A case was missed in the Cache-Control model of HTTP/1.1; s-maxage
was introduced to add this missing case. (Sections 13.4, 14.8, 14.9, 14.9.3)</p></blockquote><p>HTTP/1.1 <code class="HTTP"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">Cache-Control</anchor></code> 模型で場合が抜けていました。
この抜けていた場合を追加するために <code class="HTTP"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">s-maxage</anchor></code>
を導入しました。</p><blockquote><p>The Cache-Control: max-age directive was not properly defined for
responses. (Section 14.9.3)</p></blockquote><p><code class="HTTP">Cache-Control: max-age</code> 指令が応答について適切に定義されていませんでした。</p><blockquote><p>There are situations where a server (especially a proxy) does not
know the full length of a response but is capable of serving a
byterange request. We therefore need a mechanism to allow byteranges
with a content-range not indicating the full length of the message. (Section 14.16)</p></blockquote><p>鯖 (特に串) が応答の完全な長さを知らないけどバイト範囲要求を給仕することはできるという状況があります。
従って、メッセージの完全な長さを示さない <code class="ABNF">content-range</code>
のバイト範囲を認める気候が必要です。</p><blockquote><p>Range request responses would become very verbose if all meta-data
were always returned; by allowing the server to only send needed
headers in a 206 response, this problem can be avoided. (Section 10.2.7, 13.5.3, and 14.27)</p></blockquote><p>範囲要求応答ですべてのメタ・データが常に返されるとすると非常にやかましくなります。
<code class="HTTP"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">206</anchor></code> 応答では鯖が必要な頭だけを送信するのを認めることにより、
この問題は避けることができます。</p><blockquote><p>Fix problem with unsatisfiable range requests; there are two cases:
syntactic problems, and range doesn't exist in the document. The 416
status code was needed to resolve this ambiguity needed to indicate
an error for a byte range request that falls outside of the actual
contents of a document. (Section 10.4.17, 14.16)</p></blockquote><p>満足不能範囲要求についての問題を解決。これには二つの場合があります。
構文的な問題の場合と、文書に存在しない範囲の場合です。
この曖昧性を解決するために、文書の実際の内容の外側のバイト範囲要求の誤りを示すのに必要な 
<code class="HTTP"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">416</anchor></code> <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">状態符号</anchor>が必要でした。</p><blockquote><p>Rewrite of message transmission requirements to make it much harder
for implementors to get it wrong, as the consequences of errors here
can have significant impact on the Internet, and to deal with the following problems:</p></blockquote><p>メッセージ転送要件を、
ここでの誤りの結果はインターネットに大きな衝撃を与え得るので、
間違って実装するのがより難しくなるように、
そして次の問題に対処するために書き換え。</p><blockquote><ul><li>1. Changing &quot;HTTP/1.1 or later&quot; to &quot;HTTP/1.1&quot;, in contexts where
this was incorrectly placing a requirement on the behavior of
an implementation of a future version of HTTP/1.x</li><li>2. Made it clear that user-agents should retry requests, not &quot;clients&quot; in general.</li><li>3. Converted requirements for clients to ignore unexpected 100
(Continue) responses, and for proxies to forward 100 responses,
into a general requirement for 1xx responses.</li><li>4. Modified some TCP-specific language, to make it clearer that
non-TCP transports are possible for HTTP.</li><li>5. Require that the origin server MUST NOT wait for the request
body before it sends a required 100 (Continue) response.</li><li>6. Allow, rather than require, a server to omit 100 (Continue) if
it has already seen some of the request body.</li><li>7. Allow servers to defend against denial-of-service attacks and broken clients.</li></ul></blockquote><ul><li>将来の版の HTTP/1.<var>x</var> の実装の動作についての要件を誤って課していた箇所で「HTTP/1.1 以降」を「HTTP/1.1」に変更。</li><li>「クライアント」一般ではなく利用者エージェントが要求を再試行するべきであることを明確化。</li><li>クライアントが予期せぬ <code class="HTTP"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">100</anchor></code> (継続) 応答を無視することおよび串が
<code class="HTTP">100</code> 応答を転送することについての要件を <code class="HTTP"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">1xx</anchor></code>
応答一般の要件に変更。</li><li>非 <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">TCP</anchor> 転送路で HTTP を使うのが可能であることを明らかにするために
TCP 特有の言葉を修正。</li><li><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">起源鯖</anchor>が必須の <code class="HTTP">100</code> (継続) 応答を送る前に要求本体を待っては<strong>ならない</strong>ことを要求。</li><li>鯖が既に要求本体の幾らかを見ているときには <code class="HTTP">100</code> (継続)
を省略することを (要求するのではなく) 認める。</li><li>鯖が<anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">サービス拒否攻撃</anchor>と壊れたクライアントから防御するのを認める。</li></ul><blockquote><p>This change adds the Expect header and 417 status code. The message
transmission requirements fixes are in sections 8.2, 10.4.18, 8.1.2.2, 13.11, and 14.20.</p></blockquote><p>この変更は、 <code class="HTTP"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">Expect</anchor></code> 頭と <code class="HTTP"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">417</anchor></code>
状態符号を追加します。</p><blockquote><p>Proxies should be able to add Content-Length when appropriate. (Section 13.5.2)</p></blockquote><p>串は適切な時には <code class="HTTP"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">Content-Length</anchor></code> を追加することができるべきです。</p><blockquote><p>Clean up confusion between 403 and 404 responses. (Section 10.4.4, 10.4.5, and 10.4.11)</p></blockquote><p><code class="HTTP"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">403</anchor></code> 応答と <code class="HTTP"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">404</anchor></code> 応答の混乱を明確化。</p><blockquote><p>Warnings could be cached incorrectly, or not updated appropriately.
(Section 13.1.2, 13.2.4, 13.5.2, 13.5.3, 14.9.3, and 14.46) Warning
also needed to be a general header, as PUT or other methods may have need for it in requests.</p></blockquote><p><code class="HTTP">Warning</code> を間違ってキャッシュすることや不適切に更新しないことができた。
<code class="HTTP"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">Warning</anchor></code> は一般頭である必要もありました。 <code class="HTTP"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">PUT</anchor></code>
や他の方式は要求中で <code class="HTTP">Warning</code> が必要かもしれませんから。</p><blockquote><p>Transfer-coding had significant problems, particularly with
interactions with chunked encoding. The solution is that transfer-codings become as full fledged as content-codings. This involves
adding an IANA registry for transfer-codings (separate from content
codings), a new header field (TE) and enabling trailer headers in the
future. Transfer encoding is a major performance benefit, so it was
worth fixing [39]. TE also solves another, obscure, downward
interoperability problem that could have occurred due to interactions
between authentication trailers, chunked encoding and HTTP/1.0
clients.(Section 3.6, 3.6.1, and 14.39)</p></blockquote><p><code class="ABNF"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">transfer-coding</anchor></code> は、特に <code class="HTPT"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">chunked</anchor></code>
符号化の相互作用に関して、重大な問題がありました。
解決策として、 <code class="ABNF">transfer-coding</code> は完全に <code class="ABNF"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">content-coding</anchor></code>
を覆うものとします。これは、 <code class="ABNF">transfer-coding</code> の
<anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">IANA</anchor> 登録簿と新しい頭欄 (<code class="HTTP"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">TE</anchor></code>) の追加、
将来 trailer 頭を可能にすることを含みます。
転送符号化は大きな効率上の利益があり、修正する価値がありました。
<code class="HTTP">TE</code> は、他の、認証 trailer や <code class="HTTP">chunked</code> 符号化や HTTP/1.0
クライアントとの相互作用について起こり得る、不明瞭な下方相互運用性問題も解決します。</p><blockquote><p>The PATCH, LINK, UNLINK methods were defined but not commonly
implemented in previous versions of this specification. See RFC 2068 [33].</p></blockquote><p><code class="HTTP"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">PATCH</anchor></code>, <code class="HTTP"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">LINK</anchor></code>,
<code class="HTTP"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">UNLINK</anchor></code> 各方式はこの仕様書の以前の版で定義されていましたが、広く実装されませんでした。
<anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">RFC2068</anchor> を参照。</p><blockquote><p>The Alternates, Content-Version, Derived-From, Link, URI, Public and
Content-Base header fields were defined in previous versions of this
specification, but not commonly implemented. See RFC 2068 [33].</p></blockquote><p><code class="HTTP"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">Alternates</anchor></code>, <code class="HTTP"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">Content-Version</anchor></code>,
<code class="HTTP"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">Derived-From</anchor></code>, <code class="HTTP"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">Link</anchor></code>,
<code class="HTTP"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">URI</anchor></code>, <code class="HTTP"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">Public</anchor></code>, 
<code class="HTTP"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">Content-Base</anchor></code> 各頭欄はこの仕様書の以前の版で定義されていましたが、広く実装されませんでした。
RFC 2068 を参照。</p></section></section></section><section><h1>20 Index</h1><blockquote><p>Please see the PostScript version of this RFC for the INDEX.</p></blockquote><p>索引はこの RFC の <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">PostScript</anchor> 版を参照してください。</p></section><section><h1>21.  Full Copyright Statement</h1><blockquote><p>Copyright (C) The Internet Society (1999).  All Rights Reserved.</p></blockquote><p>以下略。 <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">RFCのライセンス</anchor>を参照。</p></section><section><h1>Acknowledgement</h1><blockquote><p>Funding for the RFC Editor function is currently provided by the Internet Society.</p></blockquote></section><section><h1>License</h1><p><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">RFCのライセンス</anchor>。</p></section><section><h1>メモ</h1><figure class="amazon"><p>HTTP</p></figure></section></body></html>