From: jhauga Date: Fri, 30 Jan 2026 21:15:06 +0000 (-0500) Subject: curl: add -I and -i to -h important X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=161be3085494b42e7904c3a74419a4dcace3c0d3;p=thirdparty%2Fcurl.git curl: add -I and -i to -h important Closes #20483 --- diff --git a/docs/cmdline-opts/head.md b/docs/cmdline-opts/head.md index 353ef9a011..7e005c7254 100644 --- a/docs/cmdline-opts/head.md +++ b/docs/cmdline-opts/head.md @@ -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: diff --git a/docs/cmdline-opts/header.md b/docs/cmdline-opts/header.md index 7af86aba18..9e1f2029e0 100644 --- a/docs/cmdline-opts/header.md +++ b/docs/cmdline-opts/header.md @@ -6,7 +6,7 @@ Short: H Arg:
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: diff --git a/src/tool_listhelp.c b/src/tool_listhelp.c index 9a8a7d94a7..864771bfba 100644 --- a/src/tool_listhelp.c +++ b/src/tool_listhelp.c @@ -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
", "Pass custom header(s) to server", - CURLHELP_HTTP | CURLHELP_IMAP | CURLHELP_SMTP }, + CURLHELP_IMPORTANT | CURLHELP_HTTP | CURLHELP_IMAP | CURLHELP_SMTP }, { "-h, --help ", "Get help for commands", CURLHELP_IMPORTANT | CURLHELP_CURL }, diff --git a/tests/data/data1461.txt b/tests/data/data1461.txt index 62fe8de989..286be7c344 100644 --- a/tests/data/data1461.txt +++ b/tests/data/data1461.txt @@ -1,16 +1,18 @@ Usage: curl [options...] - -d, --data HTTP POST data - -f, --fail Fail fast with no output on HTTP errors - -h, --help Get help for commands - -o, --output 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 Transfer local FILE to destination - -u, --user Server user and password - -A, --user-agent Send User-Agent to server - -v, --verbose Make the operation more talkative - -V, --version Show version number and quit + -d, --data HTTP POST data + -f, --fail Fail fast with no output on HTTP errors + -I, --head Show document info only + -H, --header
Pass custom header(s) to server + -h, --help Get help for commands + -o, --output 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 Transfer local FILE to destination + -u, --user Server user and password + -A, --user-agent Send User-Agent 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: