aboutsummaryrefslogtreecommitdiff
path: root/docs/cmdline-opts/head.md
diff options
context:
space:
mode:
Diffstat (limited to 'docs/cmdline-opts/head.md')
-rw-r--r--docs/cmdline-opts/head.md23
1 files changed, 23 insertions, 0 deletions
diff --git a/docs/cmdline-opts/head.md b/docs/cmdline-opts/head.md
new file mode 100644
index 000000000..be4dbb87f
--- /dev/null
+++ b/docs/cmdline-opts/head.md
@@ -0,0 +1,23 @@
+---
+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
+See-also:
+ - get
+ - verbose
+ - trace-ascii
+Example:
+ - -I $URL
+---
+
+# `--head`
+
+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.