2024-05-15 15:20:32 -04:00
|
|
|
---
|
2023-12-11 20:30:44 -05:00
|
|
|
c: Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al.
|
|
|
|
SPDX-License-Identifier: curl
|
|
|
|
Long: head
|
|
|
|
Short: I
|
|
|
|
Help: Show document info only
|
|
|
|
Protocols: HTTP FTP FILE
|
|
|
|
Category: http ftp file
|
|
|
|
Added: 4.0
|
|
|
|
Multi: boolean
|
2024-05-15 15:20:32 -04:00
|
|
|
See-also:
|
|
|
|
- get
|
|
|
|
- verbose
|
|
|
|
- trace-ascii
|
|
|
|
Example:
|
|
|
|
- -I $URL
|
2023-12-11 20:30:44 -05:00
|
|
|
---
|
2024-05-15 15:20:32 -04:00
|
|
|
|
|
|
|
# `--head`
|
|
|
|
|
2023-12-11 20:30:44 -05:00
|
|
|
Fetch the headers only! HTTP-servers feature the command HEAD which this uses
|
|
|
|
to get nothing but the header of a document. When used on an FTP or FILE file,
|
|
|
|
curl displays the file size and last modification time only.
|