xref: /curl/docs/cmdline-opts/head.md (revision 3040971d)
1---
2c: Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al.
3SPDX-License-Identifier: curl
4Long: head
5Short: I
6Help: Show document info only
7Protocols: HTTP FTP FILE
8Category: http ftp file
9Added: 4.0
10Multi: boolean
11See-also:
12  - get
13  - verbose
14  - trace-ascii
15Example:
16  - -I $URL
17---
18
19# `--head`
20
21Fetch the headers only. HTTP-servers feature the command HEAD which this uses
22to get nothing but the header of a document. When used on an FTP or FILE URL,
23curl displays the file size and last modification time only.
24