Compare Revisions
HEAD
Revision 1086187:
Revision 1086187 by teoli on
Revision 1086551:
Revision 1086551 by fscholz on
- Title:
- HEAD
- HEAD
- Slug:
- Web/HTTP/Methods/HEAD
- Web/HTTP/Methods/HEAD
- Tags:
- "HTTP" "Reference" "Request method"
- "HTTP" "Reference" "Request method"
- Comment:
- review
- Content:
-
Revision 1086187 Revision 1086551 n 11 The <code>HEAD</code> method requests the headers that woul n 11 The <strong>HTTP <code>HEAD</code> method</strong> requests > d be returned if the specified resource would be done with a {{HT > the headers that are returned if the specified resource would be > TPMethod("GET")}}. Such a request can be done before deciding to > requested with an HTTP {{HTTPMethod("GET")}} method. Such a requ > download a large resource to save bandwidth. > est can be done before deciding to download a large resource to s > ave bandwidth, for example. n 14 A response to a <code>HEAD</code> method should not have a n 14 A response to a <code>HEAD</code> method should not have a > body. If so, it must be ignored. Even so, {{glossary("Entity head > body. If so, it must be ignored. Even so, {{glossary("Entity head > er", "entity headers")}} describing the content of the body, like > er", "entity headers")}} describing the content of the body, like > {{HTTPHeader("Content-Length")}} may be included in the response > {{HTTPHeader("Content-Length")}} may be included in the response > . They don't relate to the body of the <code>HEAD</code> response > . They don't relate to the body of the <code>HEAD</code> response > , that should be empty, but to the body a similar request with th > , which should be empty, but to the body of similar request using > e {{HTTPMethod("GET")}} method would have returned in its respons > the {{HTTPMethod("GET")}} method would have returned as a respon > e. > se. n 17 If the result of a <code>HEAD</code> requests shows that a n 17 If the result of a <code>HEAD</code> request shows that a c > resource cached after a {{HTTPMethod("GET")}} request is now outd > ached resource after a {{HTTPMethod("GET")}} request is now outda > ate, the cache is invalidated, even if no <code>GET</code> method > ted, the cache is invalidated, even if no <code>GET</code> reques > has been done. > t has been made. t 113 <li>{{HTTPMethod("Get")}} t 113 <li>{{HTTPMethod("GET")}}