<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body><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="4" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">[4]</anchor-end> <cite xml:lang="en">RFC 2310 - The Safe Response Header Field</cite> (<time>2014-11-03 00:32:42 +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/rfc2310">http://tools.ietf.org/html/rfc2310</anchor-external></li></ul></refs><comment-p xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:10:"><anchor-end xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="5" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">[5]</anchor-end> <code xmlns="http://www.w3.org/1999/xhtml" class="HTTP" xml:lang="en"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">Safe:</anchor></code> の項も参照。</comment-p><p><strong>The Safe Response Header Field <ins><code class="HTTP">Safe</code> 応答頭欄</ins></strong><ul><li>Network Working Group                                         </li><li>Request for Comments: 2310                                           </li><li>Category: Experimental                                        </li><li>K. Holtman</li><li>TUE</li><li>April 1998</li></ul></p><section><h1>Status of this Memo</h1><blockquote><p>This memo defines an Experimental Protocol for the Internet
community.  It does not specify an Internet standard of any kind.
Discussion and suggestions for improvement are requested.
Distribution of this memo is unlimited.</p></blockquote></section><section><h1>Copyright Notice</h1><blockquote><p>Copyright (C) The Internet Society (1998).  All Rights Reserved.</p></blockquote></section><section><h1>Abstract</h1><blockquote><p>This document defines a HTTP response header field called Safe, which
can be used to indicate that repeating a HTTP request is safe.  Such
an indication will allow user agents to handle retries of some safe
requests, in particular safe POST requests, in a more user-friendly way.</p></blockquote><p>この文書は、 <code class="HTTP">Safe</code> という HTTP 応答頭欄を定義します。
この頭欄は、 HTTP 要求を繰り返しても安全であることを示すために使うことができます。
この表示があれば、利用者エージェントは安全な要求、
とりわけ安全な <code class="HTTP">POST</code> 要求を、より利用者に親しい方法で再試行することができます。</p></section><section><h1>1 Introduction</h1><blockquote><p>This document defines a HTTP response header field called Safe, which
can be used to indicate that repeating a HTTP request is safe.  Such
an indication will allow user agents to handle retries of some safe
requests, in particular safe POST requests, in a more user-friendly way.</p></blockquote><p>この文書は、 <code class="HTTP"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">Safe</anchor></code> という <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">HTTP</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>であることを示すために使うことができます。
この表示があれば、<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:">POST</anchor></code> 要求を、より<anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">利用者</anchor>に親しい方法で再試行することができます。</p></section><section><h1>2 Terminology and Notation</h1><blockquote><p>This document uses the HTTP terminology and BNF notation defined in [1].  It uses the key words in RFC 2119 for defining the significance
of each particular requirement.</p></blockquote><p>この文書は、 <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">RFC2068</anchor> で定義されている HTTP 用語および <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">BNF</anchor>
記法を使います。また、それぞれの要件の重要度を定義するために <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">RFC2119</anchor>
の見出し語を使います。</p></section><section><h1>3 Rationale</h1><blockquote><p>According to Section 9.1.1 (Safe Methods) of the HTTP/1.1
specification [1], POST requests are assumed to be `unsafe' by
default.  `Unsafe' means `causes side effects for which the user will
be held accountable'.</p></blockquote><p>HTTP/1.1 仕様書の 9.1.1節 (安全な<rubyb xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">方式<rt xmlns="http://www.w3.org/1999/xhtml">method</rt></rubyb>)
によれば、 <code class="HTTP">POST</code> 要求は既定では「安全でない」
とみなされます。「安全でない」とは、
「利用者が責任を負うこととなる副作用を起こす」ことを意味します。</p><blockquote><p>It is sometimes necessary for a user agent to repeat a POST request.
Examples of such cases are</p></blockquote><p>時々、利用者エージェントは <code class="HTTP">POST</code> 要求を繰り返す必要があります。
その例としては、</p><blockquote><ul><li>when retrying a POST request which gave an indeterminate error
result in the previous attempt</li><li>when the user presses the RELOAD button while a POST result is displayed</li><li>when the history function is used to redisplay a POST result
which is no longer in the history buffer.</li></ul></blockquote><ul><li>以前の試行で不確定誤り結果を得た <code class="HTTP">POST</code> 要求を再試行する時</li><li><code class="HTTP">POST</code> 結果が表示されているところで利用者が「再試行」ボタンを押した時</li><li>履歴機能を使って、既に履歴緩衝にない <code class="HTTP">POST</code>
結果を再表示する時</li></ul><p>が挙げられます。</p><blockquote><p>If the POST request is unsafe, HTTP requires explicit user
confirmation is before the request is repeated.  The confirmation
dialog often takes the form of a `repost form data?'  dialog box.
This dialog is confusing to many users, and slows down navigation in any case.</p></blockquote><p><code class="HTTP">POST</code> 要求が安全でない場合には、要求を繰り返す前に陽に利用者に確認することを
HTTP は要求しています。確認対話は、しばしば「フォーム・データを再投函しますか?」
対話箱の形を取ります。この対話は多くの利用者を混乱させますし、
とにかく誘導がのろくなります。</p><blockquote><p>If the repeated POST request is safe, the user-unfriendly
confirmation dialog can be omitted.  However plain HTTP/1.1 [1] has
no mechanism by which agents can tell if POST requests are safe, and
they must be assumed unsafe by default.  This document adds a
mechanism to HTTP, the Safe header field, for telling if a POST
request is safe.</p></blockquote><p>繰り返される <code class="HTTP">POST</code> 要求が安全であれば、
利用者に親しくない確認対話は省略できます。しかし、素の HTTP/1.1
はエージェントが <code class="HTTP">POST</code> 要求は安全であるかを知らせることができる仕組みを持っていませんし、
既定では安全ではないと仮定しなければなりません。
この文書は、 <code class="HTTP">POST</code> 要求が安全であるかを知らせる仕組み、
<code class="HTTP">Safe</code> 頭欄を HTTP に付け加えます。</p><blockquote><p>Using the Safe header field, web applications which require the use
of a safe POST request, rather than a GET request, for the submission
of web forms, can be made more user-friendly.  The use of a POST
request may be required for a number of reasons, including</p></blockquote><p><code class="HTTP">Safe</code> 頭欄を使うと、ウェブ・<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:">GET</anchor></code> 要求ではなく安全な
<code class="HTTP">POST</code> 要求を使う必要のある<anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">ウェブ応用</anchor>はより利用者に親しくすることができます。
<code class="HTTP">POST</code> 要求を使う必要があるかもしれない理由は沢山ありますが、たとえば</p><blockquote><ul><li>the contents of the form are potentially very large</li><li>the form is used to upload a file (see [2])</li><li>the application needs some internationalization features
(see [3]) which are only available if the form contents are
transmitted in a request body the information in the form cannot
be encoded in a GET request URL because of security considerations. <ins>原文まま</ins></li></ul></blockquote><ul><li>フォームの内容が非常に大きくなり得る</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:">うp</anchor>するために使う</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:">国際化</anchor>機能が必要</li><li>フォーム中の情報は安全性に関係で <code class="HTTP">GET</code> 要求 <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">URL</anchor> に符号化できない</li></ul><p>といったものがあります。</p></section><section><h1>4 The Safe response header field</h1><blockquote><p>The Safe response header field is defined as an addition to the
HTTP/1.x protocol suite.</p></blockquote><p><code class="HTTP">Safe</code> 応答頭欄は、 HTTP/1.<var>x</var> プロトコル集への追加として定義します。</p><blockquote><p>The Safe response header field is used by origin servers to indicate
whether repeating the received HTTP request is safe in the sense of
Section 9.1.1 (Safe Methods) of the HTTP/1.1 specification [1].  For
the purpose of this specification, a HTTP request is considered to be
a repetition of a previous request if both requests</p></blockquote><p><code class="HTTP">Safe</code> 応答頭欄は、<anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">起源鯖</anchor>が、
受信した HTTP 要求を繰り返しても HTTP/1.1 仕様書 9.1.1 節 (安全な方式)
での意味で安全であるかどうかを示すために使用します。
この仕様書の目的では、ある HTTP 要求は、以前の要求と</p><blockquote><ul><li>are issued by the same user agent, and</li><li>apply to the same resource, and</li><li>have the same request method, and</li><li>both have no request body, or both have request bodies which are
byte-wise identical after decoding of any content and transfer codings.</li></ul></blockquote><ul><li>同じ利用者エージェントにより発行され、かつ</li><li>同じ<anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">資源</anchor>に適用され、かつ</li><li>同じ要求<anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">方式</anchor>であり、かつ</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:">転送符号化</anchor>を復号した後にバイト的に同一である</li></ul><p>場合に、以前の要求の繰り返しと考えます。</p><blockquote><p>The Safe header field has the following syntax.</p></blockquote><p><code class="HTTP">Safe</code> 頭欄は、次の構文を持ちます。</p><blockquote><ul><li>Safe        = &quot;Safe&quot; &quot;:&quot; safe-nature</li><li>safe-nature = &quot;yes&quot; | &quot;no&quot;</li></ul></blockquote><blockquote><p>An example of the header field is:</p></blockquote><p>頭欄の例:</p><blockquote><ul><li>Safe: yes</li></ul></blockquote><blockquote><p>If a Safe header field is absent in the response, the corresponding
request MUST be considered unsafe, unless it is a GET or HEAD
request.  As GET and HEAD requests are safe by definition, user
agents SHOULD ignore a `Safe: no' header field in GET and HEAD responses.</p></blockquote><p><code class="HTTP">Safe</code> 頭欄が応答になければ、
対応する要求は、それが <code class="HTTP">GET</code> 要求または <code class="HTTP"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">HEAD</anchor></code>
要求で無い限り、安全でないと考えなければ<strong>なりません</strong>。
<code class="HTTP">GET</code> 要求や <code class="HTTP">HEAD</code> 要求は定義上安全なので、
利用者エージェントは <code class="HTTP">GET</code> や <code class="HTTP">HEAD</code>
の応答の <code class="HTTP">Safe: no</code> 頭欄を無視する<strong>べきです</strong>。</p><blockquote><p>If, according to a received Safe header field, the repeating of a
request is safe, the request MAY be repeated automatically without
asking for user confirmation.</p></blockquote><p>受信した <code class="HTTP">Safe</code> 頭欄によれば要求の繰り返しが安全であるとするなら、
要求を利用者の確認を取らずに自動的に繰り返しても<strong>構いません</strong>。</p></section><section><h1>5 Security Considerations</h1><blockquote><p>For a discussion of the security considerations connected to HTTP
form submission, see [1].  The Safe header field introduces no new
security risks.</p></blockquote><p>HTTP フォーム提出に関する安全についての考慮の議論は RFC 2068 を参照してください。
<code class="HTTP">Safe</code> 頭欄は新しい安全上の危険をもたらしてはいません。</p><blockquote><p>The use of GET requests for form submission has some security risks
which are absent for submission with other HTTP methods.  By taking
away a counter-incentive to the use of GET requests for form
submission, the Safe header field may improve overall security.</p></blockquote><p>フォーム提出で <code class="HTTP">GET</code> 要求を使うことは、
他の HTTP 方式での提出時にはない安全上の危険があります。
フォーム提出に <code class="HTTP">GET</code> 要求を使うことの逆要因を減らすことで、
<code class="HTTP">Safe</code> 頭欄は全体的な安全を向上させるかもしれません。</p></section><section><h1>6 References</h1><blockquote><p><anchor-end xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="1" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">[1]</anchor-end> Fielding, R., Gettys, J., Mogul, J., Frystyk, H., and
T. Berners-Lee, &quot;Hypertext Transfer Protocol -- HTTP/1.1&quot;,  RFC
2068, January 1997.</p><p><anchor-end xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="2" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">[2]</anchor-end> Nebel, E., and L. Masinter, &quot;Form-based File Upload in HTML&quot;,
RFC 1867, November 1995.</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> Yergeau, F., Nicol, G., Adams, G., and M. Duerst,
&quot;Internationalization of the Hypertext Markup Language&quot;, RFC
2070, January 1997.</p></blockquote></section><section><h1>7 Author's Address</h1><blockquote><pre>   Koen Holtman
   Technische Universiteit Eindhoven
   Postbus 513
   Kamer HG 6.57
   5600 MB Eindhoven (The Netherlands)

   EMail: koen@win.tue.nl</pre></blockquote></section><section><h1>8.  Full Copyright Statement</h1><blockquote><p>Copyright (C) The Internet Society (1998).  All Rights Reserved.</p></blockquote><p>(全文は <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">RFCのライセンス</anchor>を参照。)</p></section><section><h1>License</h1><p><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">RFCのライセンス</anchor>。</p></section><section><h1>メモ</h1></section></body></html>