HEAD

The HTTP method that asks for exactly the headers a GET would return, but without the body.

In more detail

HEAD is safe and idempotent. Its Content-Length reports the size the body would have had, not zero, so a client can check size or freshness before downloading. curl -I sends a HEAD request.

Example

curl -sI localhost:8765/tasks

Related terms

Taught in

References