xref: /aosp_15_r20/external/curl/docs/cmdline-opts/head.md (revision 6236dae45794135f37c4eb022389c904c8b0090d)
1---
2c: Copyright (C) Daniel Stenberg, <[email protected]>, 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