#?SuikaWiki/0.9 [[#comment]] * 仕様書から ** RFC 1945 (HTTP/1.0); RFC 2068・2616 (HTTP/1.1) 10.3.2 301 Moved Permanently > The requested resource has been assigned a new permanent [DEL[URL]] [INS[URI]] and any future references to this resource [DEL[should]] [INS[SHOULD]] [DEL[[INS[{1945,2068}]] be done using]] [INS[[INS[{2616}]] use]] [DEL[that URL]] [INS[one of the returned URIs]]. Clients with link editing capabilities [DEL[[DEL[[INS[{1945}]] should]] [INS[[INS[{2068}]] SHOULD]]]] [INS[[INS[{2616}]] ought to]] automatically re[INS[-]]link references to the Request-URI to [INS[one or more of]] the new reference[INS[s]] returned by the server, where possible. [INS[[INS[{2068,2616}]] This response is cach[INS[e]]able unless indicated otherwise.]] 要求された資源には新しい永続 URI が割り当てられており、 将来のこの資源への参照は全て返された URI の一つを使う'''べきです'''。 リンク編集機能のあるクライアントは、可能であれば、 [CODE(ABNF)[[[Request-URI]]]] をサーバーにより返された1つ以上の新しい参照に自動的に再リンクするべきです。 この応答は、別途指示されていない限りキャッシュ可能です。 > [DEL[[INS[[INS[{2068}]] If the new URI is a location, its]] [DEL[[INS[{1945}]] The new]] URL]] [INS[[INS[{2616}]] The new permanent URI]] [DEL[[INS[{1945,2068}]] must]] [INS[[INS[{2068,2616}]] SHOULD]] be given by the Location field in the response. 新しい永続 URI は、応答の [CODE(HTTP)[[[Location]]]] 欄で与えられる'''べきです'''。 > Unless [DEL[it was a HEAD request]] [INS[the request method was HEAD]], the [DEL[Entity-Body]] [INS[entity]] of the response [DEL[should]] [INS[SHOULD]] contain a short [INS[hypertext]] note with a hyperlink to the new [DEL[URL]] [INS[URI(s)]]. 要求 method が [CODE(HTTP)[HEAD]] でない限り、 応答の実体は新しい URI (群) へのハイパーリンクが入った短いハイパーテキストの覚書を含む'''べきです'''。 > If the 301 status code is received in response to a request [DEL[[INS[{1945}]] using the POST method]] [DEL[[INS[[INS[{2068,2616}]] other than GET or HEAD]]]] [INS[[INS[{errata}]] method that is known to be "safe", as defined in section 9.1.1, then the request MAY be automatically redirected by the user agent without confirmation. Otherwise]], the user agent [DEL[must not]] [INS[MUST NOT]] automatically redirect the request unless it can be confirmed by the user, since this might change the conditions under which the request was issued. 「安全」とわかっている method については、利用者エージェントは要求を確認なしに自動的に redirect しても'''構いません'''。 それ以外の場合には、 利用者エージェントは利用者が確認することなしに自動的に redirect しては'''なりません'''。そうでないと、要求が発行された条件を変更してしまうかもしれないからです。 > Note: When automatically redirecting a POST request after receiving a 301 status code, some existing [INS[HTTP/1.0]] user agents will erroneously change it into a GET request. 注意 : [CODE(HTTP)[301]] 状態符号を受信して [CODE(HTTP)[[[POST]]]] 要求を自動的に redirect するときに、誤って [CODE(HTTP)[GET]] 要求に変えてしまう HTTP/1.0 利用者エージェントが存在します。 [INS[ 注 : 特に注記のない修正は、 RFC 1945 → RFC 2068 のもの (削除部 = 1945, 挿入部 = 2068)。 ]INS] ** RFC の部分の License [[RFCのライセンス]] * メモ - [1] [Errata]