#?SuikaWiki/0.9 [[#comment]] * 仕様書から ** RFC 1945 (HTTP/1.0) 8.2; RFC 2068 (HTTP/1.1) 9.4 HEAD > The HEAD method is identical to GET except that the server [DEL[must not]] [INS[MUST NOT]] return [DEL[any Entity-Body]] [INS[a message-body]] in the response. The metainformation contained in the HTTP headers in response to a HEAD request [DEL[should]] [INS[SHOULD]] be identical to the information sent in response to a GET request. This method can be used for obtaining metainformation about the [DEL[resource identified]] [INS[entity implied]] by the [DEL[Request-URI]] [INS[request]] without transferring the [DEL[Entity-Body]] [INS[entity-body]] itself. This method is often used for testing hypertext links for validity, accessibility, and recent modification. [CODE(HTTP)[HEAD]] 方式は、サーバーが[[応答]]中で [CODE(ABNF)[[[message-body]]]] を返しては'''ならない'''点を除いて、 [CODE(HTTP)[[[GET]]]] と同じです。 [CODE(HTTP)[HEAD]] 要求に対する応答の [[HTTP]] 頭並びに含まれる[[メタ情報]]は、 [CODE(HTTP)[GET]] 要求に対する応答で送られる情報と同じである'''べきです'''。 この方式は、要求で暗示した実体についてのメタ情報を [CODE(ABNF)[[[entity-body]]]] 自体を転送せずに得ることができます。 この方式はしばしば[[ハイパーテキスト]]・[[リンク]]の妥当性, 接続可能性, 最近の修正の検査のために使われます。 [DEL[ > There is no "conditional HEAD" request analogous to the conditional GET. If an If-Modified-Since header field is included with a HEAD request, it should be ignored. 条件付 [CODE(HTTP)[GET]] に対応する「条件付 [CODE(HTTP)[HEAD]]」はありません。 [CODE(HTTP)[[[If-Modified-Since]]]] 頭欄が [CODE(HTTP)[HEAD]] 要求に含まれていても、無視するべきです。 ]DEL] [INS[ > The response to a HEAD request [DEL[may]] [INS[MAY]] be cach[INS[e]]able in the sense that the information contained in the response [DEL[may]] [INS[MAY]] be used to update a previously cached entity from that resource. If the new field values indicate that the cached entity differs from the current entity (as would be indicated by a change in Content-Length, Content-MD5, ETag or Last-Modified), then the cache MUST treat the cache entry as stale. [CODE(HTTP)[HEAD]] 要求に対する応答は、応答に含まれる情報を以前にその[[資源]]から[[キャッシュ]]した実体を更新するために使っても'''構わない'''という意味で[[キャッシュ可能]]です。 キャッシュした実体が現在の実体と異なることを新しい欄値が示していたら ([CODE(HTTP)[[[Content-Length]]]], [CODE(HTTP)[[[Content-MD5]]]], [CODE(HTTP)[[[Content-MD5]]]], [CODE(HTTP)[[[ETag]]]] または [CODE(HTTP)[[[Last-Modified]]]] の変更で示される)、 キャッシュはキャッシュ項目を[[腐敗]]したものとして扱わなければ'''なりません'''。 ]INS] ** RFC の部分の License [[RFCのライセンス]] ** CGI [REFS[ - [1] [CITE@en[RFC 3875 - The Common Gateway Interface (CGI) Version 1.1]] ([TIME[2011-11-20 06:09:05 +09:00]] 版) ]REFS] * メモ