]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
curl: add -I and -i to -h important
authorjhauga <johnhaugabook@gmail.com>
Fri, 30 Jan 2026 21:15:06 +0000 (16:15 -0500)
committerDaniel Stenberg <daniel@haxx.se>
Thu, 5 Feb 2026 16:20:29 +0000 (17:20 +0100)
Closes #20483

docs/cmdline-opts/head.md
docs/cmdline-opts/header.md
src/tool_listhelp.c
tests/data/data1461.txt

index 353ef9a0118dce42cfcb600f3802d0d49a32ce28..7e005c7254df8e6fc46f6500fd76c36203643166 100644 (file)
@@ -5,7 +5,7 @@ Long: head
 Short: I
 Help: Show document info only
 Protocols: HTTP FTP FILE
-Category: http ftp file
+Category: important http ftp file
 Added: 4.0
 Multi: boolean
 See-also:
index 7af86aba1833a405e4b9d3d812adb53dfb3850da..9e1f2029e08f8a1f138e77ae78f264517ac7d274 100644 (file)
@@ -6,7 +6,7 @@ Short: H
 Arg: <header/@file>
 Help: Pass custom header(s) to server
 Protocols: HTTP IMAP SMTP
-Category: http imap smtp
+Category: important http imap smtp
 Added: 5.0
 Multi: append
 See-also:
index 9a8a7d94a79043ddd52792f73ae2fc97848ee860..864771bfba883579d2bd69f16811784b16012676 100644 (file)
@@ -266,10 +266,10 @@ const struct helptxt helptext[] = {
     CURLHELP_HTTP | CURLHELP_PROXY },
   { "-I, --head",
     "Show document info only",
-    CURLHELP_HTTP | CURLHELP_FTP | CURLHELP_FILE },
+    CURLHELP_IMPORTANT | CURLHELP_HTTP | CURLHELP_FTP | CURLHELP_FILE },
   { "-H, --header <header/@file>",
     "Pass custom header(s) to server",
-    CURLHELP_HTTP | CURLHELP_IMAP | CURLHELP_SMTP },
+    CURLHELP_IMPORTANT | CURLHELP_HTTP | CURLHELP_IMAP | CURLHELP_SMTP },
   { "-h, --help <subject>",
     "Get help for commands",
     CURLHELP_IMPORTANT | CURLHELP_CURL },
index 62fe8de989c7f9e49f6cfb0cd296fb797ff4d53b..286be7c344346570d7cf034347f09671378555b6 100644 (file)
@@ -1,16 +1,18 @@
 Usage: curl [options...] <url>
- -d, --data <data>           HTTP POST data
- -f, --fail                  Fail fast with no output on HTTP errors
- -h, --help <subject>        Get help for commands
- -o, --output <file>         Write to file instead of stdout
- -O, --remote-name           Write output to file named as remote file
- -i, --show-headers          Show response headers in output
- -s, --silent                Silent mode
- -T, --upload-file <file>    Transfer local FILE to destination
- -u, --user <user:password>  Server user and password
- -A, --user-agent <name>     Send User-Agent <name> to server
- -v, --verbose               Make the operation more talkative
- -V, --version               Show version number and quit
+ -d, --data <data>            HTTP POST data
+ -f, --fail                   Fail fast with no output on HTTP errors
+ -I, --head                   Show document info only
+ -H, --header <header/@file>  Pass custom header(s) to server
+ -h, --help <subject>         Get help for commands
+ -o, --output <file>          Write to file instead of stdout
+ -O, --remote-name            Write output to file named as remote file
+ -i, --show-headers           Show response headers in output
+ -s, --silent                 Silent mode
+ -T, --upload-file <file>     Transfer local FILE to destination
+ -u, --user <user:password>   Server user and password
+ -A, --user-agent <name>      Send User-Agent <name> to server
+ -v, --verbose                Make the operation more talkative
+ -V, --version                Show version number and quit
 
 This is not the full help; this menu is split into categories.
 Use "--help category" to get an overview of all categories, which are: