The HTTP HEAD method is used to request HTTP headers from the server. The HEAD method is identical to the GET method except that the server must not return the message body in the response. Requests using the HEAD method should only retrieve data (server must not change its state). If you want to change data on the server, use POST, PUT, PATCH or DELETE methods.

The HEAD request may be executed before loading a large resource, to check resource size, validity, accessibility, and recent modification. (would be indicated by Content-Length/Last-Modified headers).

The HEAD requests cannot have a message body. But you still can send data to the server using the URL parameters. In this case, you are limited to the maximum size of the URL, which is about 2000 characters (it depends on the browser).

The HEAD method is defined as idempotent, which means that multiple identical HEAD requests should have the same effect as a single request.

The following example demonstrates sending a HEAD request to the server:

HEAD Request Example Live Request
HEAD /echo/head/json HTTP/1.1
Authorization: Bearer mt0dgHmLJMVQhvjpNXDyA83vA_PxH23Y
Accept: application/json

And the server response:

Server Response
HTTP/1.1 200 OK
Content-Length: 19
Content-Type: application/json