xf.li | 6c8fc1e | 2023-08-12 00:11:09 -0700 | [diff] [blame] | 1 | c: Copyright (C) 1998 - 2022, Daniel Stenberg, <daniel@haxx.se>, et al. |
| 2 | SPDX-License-Identifier: curl |
| 3 | Long: head |
| 4 | Short: I |
| 5 | Help: Show document info only |
| 6 | Protocols: HTTP FTP FILE |
| 7 | Category: http ftp file |
| 8 | Example: -I $URL |
| 9 | Added: 4.0 |
| 10 | See-also: get verbose trace-ascii |
| 11 | Multi: boolean |
| 12 | --- |
| 13 | Fetch the headers only! HTTP-servers feature the command HEAD which this uses |
| 14 | to get nothing but the header of a document. When used on an FTP or FILE file, |
| 15 | curl displays the file size and last modification time only. |