mirror of
https://github.com/curl/curl.git
synced 2026-08-25 11:43:36 +03:00
curl: help category cleanups
- add 'mqtt' as a category - add more protocol categories to several options - make --data worded better to also cover MQTT Closes #22447
This commit is contained in:
parent
1d7b8e6c29
commit
5eb2f0757e
26 changed files with 64 additions and 50 deletions
|
|
@ -6,7 +6,7 @@ Arg: <path>
|
||||||
Help: Connect via abstract Unix domain socket
|
Help: Connect via abstract Unix domain socket
|
||||||
Added: 7.53.0
|
Added: 7.53.0
|
||||||
Protocols: HTTP
|
Protocols: HTTP
|
||||||
Category: connection
|
Category: connection http
|
||||||
Multi: single
|
Multi: single
|
||||||
See-also:
|
See-also:
|
||||||
- unix-socket
|
- unix-socket
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@ SPDX-License-Identifier: curl
|
||||||
Long: basic
|
Long: basic
|
||||||
Help: HTTP Basic Authentication
|
Help: HTTP Basic Authentication
|
||||||
Protocols: HTTP
|
Protocols: HTTP
|
||||||
Category: auth
|
Category: auth http
|
||||||
Added: 7.10.6
|
Added: 7.10.6
|
||||||
Multi: boolean
|
Multi: boolean
|
||||||
See-also:
|
See-also:
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@ Long: compressed-ssh
|
||||||
Help: Enable SSH compression
|
Help: Enable SSH compression
|
||||||
Protocols: SCP SFTP
|
Protocols: SCP SFTP
|
||||||
Added: 7.56.0
|
Added: 7.56.0
|
||||||
Category: scp ssh
|
Category: scp sftp ssh
|
||||||
Multi: boolean
|
Multi: boolean
|
||||||
See-also:
|
See-also:
|
||||||
- compressed
|
- compressed
|
||||||
|
|
|
||||||
|
|
@ -4,16 +4,17 @@ SPDX-License-Identifier: curl
|
||||||
Long: data
|
Long: data
|
||||||
Short: d
|
Short: d
|
||||||
Arg: <data>
|
Arg: <data>
|
||||||
Help: HTTP POST data
|
Help: Post data
|
||||||
Protocols: HTTP MQTT
|
Protocols: HTTP MQTT
|
||||||
Mutexed: form head upload-file
|
Mutexed: form head upload-file
|
||||||
Category: important http post upload
|
Category: important http post upload mqtt
|
||||||
Added: 4.0
|
Added: 4.0
|
||||||
Multi: append
|
Multi: append
|
||||||
See-also:
|
See-also:
|
||||||
- data-binary
|
- data-binary
|
||||||
- data-urlencode
|
- data-urlencode
|
||||||
- data-raw
|
- data-raw
|
||||||
|
- form
|
||||||
Example:
|
Example:
|
||||||
- -d "name=curl" $URL
|
- -d "name=curl" $URL
|
||||||
- -d "name=curl" -d "tool=cmdline" $URL
|
- -d "name=curl" -d "tool=cmdline" $URL
|
||||||
|
|
@ -22,10 +23,14 @@ Example:
|
||||||
|
|
||||||
# `--data`
|
# `--data`
|
||||||
|
|
||||||
Send the specified data in a POST request to the HTTP server, in the same way
|
Send the specified data to a server.
|
||||||
that a browser does when a user has filled in an HTML form and presses the
|
|
||||||
submit button. This option makes curl pass the data to the server using the
|
For HTTP(S), this is done with the POST method in the same way that a browser
|
||||||
content-type application/x-www-form-urlencoded. Compared to --form.
|
does when a user has filled in an HTML form and presses the submit button.
|
||||||
|
This option makes curl pass the data to the server using the content-type
|
||||||
|
application/x-www-form-urlencoded.
|
||||||
|
|
||||||
|
For MQTT, the data is sent as a PUBLISH.
|
||||||
|
|
||||||
--data-raw is almost the same but does not have a special interpretation of
|
--data-raw is almost the same but does not have a special interpretation of
|
||||||
the @ character. To post data purely binary, you should instead use the
|
the @ character. To post data purely binary, you should instead use the
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@ Long: form-escape
|
||||||
Help: Escape form fields using backslash
|
Help: Escape form fields using backslash
|
||||||
Protocols: HTTP IMAP SMTP
|
Protocols: HTTP IMAP SMTP
|
||||||
Added: 7.81.0
|
Added: 7.81.0
|
||||||
Category: http upload post
|
Category: http upload post imap smtp
|
||||||
Multi: single
|
Multi: single
|
||||||
See-also:
|
See-also:
|
||||||
- form
|
- form
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@ Long: key
|
||||||
Arg: <key>
|
Arg: <key>
|
||||||
Protocols: TLS SCP SFTP
|
Protocols: TLS SCP SFTP
|
||||||
Help: Private key filename
|
Help: Private key filename
|
||||||
Category: tls ssh
|
Category: tls sftp scp ssh
|
||||||
Added: 7.9.3
|
Added: 7.9.3
|
||||||
Multi: single
|
Multi: single
|
||||||
See-also:
|
See-also:
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@ Long: knownhosts
|
||||||
Arg: <file>
|
Arg: <file>
|
||||||
Protocols: SCP SFTP
|
Protocols: SCP SFTP
|
||||||
Help: Specify knownhosts path
|
Help: Specify knownhosts path
|
||||||
Category: ssh
|
Category: sftp scp ssh
|
||||||
Added: 8.17.0
|
Added: 8.17.0
|
||||||
Multi: single
|
Multi: single
|
||||||
See-also:
|
See-also:
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@ Long: max-filesize
|
||||||
Arg: <bytes>
|
Arg: <bytes>
|
||||||
Help: Maximum file size to download
|
Help: Maximum file size to download
|
||||||
Protocols: FTP HTTP MQTT
|
Protocols: FTP HTTP MQTT
|
||||||
Category: connection
|
Category: connection ftp http mqtt
|
||||||
Added: 7.10.8
|
Added: 7.10.8
|
||||||
Multi: single
|
Multi: single
|
||||||
See-also:
|
See-also:
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@ Long: oauth2-bearer
|
||||||
Help: OAuth 2 Bearer Token
|
Help: OAuth 2 Bearer Token
|
||||||
Arg: <token>
|
Arg: <token>
|
||||||
Protocols: IMAP LDAP POP3 SMTP HTTP
|
Protocols: IMAP LDAP POP3 SMTP HTTP
|
||||||
Category: auth imap pop3 smtp ldap
|
Category: auth imap pop3 smtp ldap http
|
||||||
Added: 7.33.0
|
Added: 7.33.0
|
||||||
Multi: single
|
Multi: single
|
||||||
See-also:
|
See-also:
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@ Long: pass
|
||||||
Arg: <phrase>
|
Arg: <phrase>
|
||||||
Help: Passphrase for the private key
|
Help: Passphrase for the private key
|
||||||
Protocols: TLS SCP SFTP
|
Protocols: TLS SCP SFTP
|
||||||
Category: ssh tls auth
|
Category: tls sftp scp ssh auth
|
||||||
Added: 7.9.3
|
Added: 7.9.3
|
||||||
Multi: single
|
Multi: single
|
||||||
See-also:
|
See-also:
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@ Arg: <header/@file>
|
||||||
Help: Pass custom header(s) to proxy
|
Help: Pass custom header(s) to proxy
|
||||||
Protocols: HTTP
|
Protocols: HTTP
|
||||||
Added: 7.37.0
|
Added: 7.37.0
|
||||||
Category: proxy
|
Category: proxy http
|
||||||
Multi: append
|
Multi: append
|
||||||
See-also:
|
See-also:
|
||||||
- proxy
|
- proxy
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@ Long: remote-header-name
|
||||||
Short: J
|
Short: J
|
||||||
Protocols: HTTP
|
Protocols: HTTP
|
||||||
Help: Use the header-provided filename
|
Help: Use the header-provided filename
|
||||||
Category: output
|
Category: output http
|
||||||
Added: 7.20.0
|
Added: 7.20.0
|
||||||
Multi: boolean
|
Multi: boolean
|
||||||
See-also:
|
See-also:
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@ Arg: <identity>
|
||||||
Help: Identity for SASL PLAIN authentication
|
Help: Identity for SASL PLAIN authentication
|
||||||
Protocols: LDAP IMAP POP3 SMTP
|
Protocols: LDAP IMAP POP3 SMTP
|
||||||
Added: 7.66.0
|
Added: 7.66.0
|
||||||
Category: auth
|
Category: auth imap smtp pop3 ldap
|
||||||
Multi: single
|
Multi: single
|
||||||
See-also:
|
See-also:
|
||||||
- login-options
|
- login-options
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@ Long: sasl-ir
|
||||||
Help: Initial response in SASL authentication
|
Help: Initial response in SASL authentication
|
||||||
Protocols: LDAP IMAP POP3 SMTP
|
Protocols: LDAP IMAP POP3 SMTP
|
||||||
Added: 7.31.0
|
Added: 7.31.0
|
||||||
Category: auth
|
Category: auth imap pop3 ldap smtp
|
||||||
Multi: boolean
|
Multi: boolean
|
||||||
See-also:
|
See-also:
|
||||||
- sasl-authzid
|
- sasl-authzid
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@ Long: show-headers
|
||||||
Short: i
|
Short: i
|
||||||
Help: Show response headers in output
|
Help: Show response headers in output
|
||||||
Protocols: HTTP FTP
|
Protocols: HTTP FTP
|
||||||
Category: important verbose output
|
Category: important verbose output http ftp
|
||||||
Added: 4.8
|
Added: 4.8
|
||||||
Multi: boolean
|
Multi: boolean
|
||||||
See-also:
|
See-also:
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@ Long: ssl-reqd
|
||||||
Help: Require SSL/TLS
|
Help: Require SSL/TLS
|
||||||
Protocols: FTP IMAP POP3 SMTP LDAP
|
Protocols: FTP IMAP POP3 SMTP LDAP
|
||||||
Added: 7.20.0
|
Added: 7.20.0
|
||||||
Category: tls imap pop3 smtp ldap
|
Category: tls imap pop3 smtp ldap ftp
|
||||||
Multi: boolean
|
Multi: boolean
|
||||||
See-also:
|
See-also:
|
||||||
- ssl
|
- ssl
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@ Long: ssl
|
||||||
Help: Try enabling TLS
|
Help: Try enabling TLS
|
||||||
Protocols: FTP IMAP POP3 SMTP LDAP
|
Protocols: FTP IMAP POP3 SMTP LDAP
|
||||||
Added: 7.20.0
|
Added: 7.20.0
|
||||||
Category: tls imap pop3 smtp ldap
|
Category: tls imap pop3 smtp ldap ftp
|
||||||
Multi: boolean
|
Multi: boolean
|
||||||
See-also:
|
See-also:
|
||||||
- ssl-reqd
|
- ssl-reqd
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@ Arg: <path>
|
||||||
Help: Connect through this Unix domain socket
|
Help: Connect through this Unix domain socket
|
||||||
Added: 7.40.0
|
Added: 7.40.0
|
||||||
Protocols: HTTP
|
Protocols: HTTP
|
||||||
Category: connection
|
Category: connection http
|
||||||
Multi: single
|
Multi: single
|
||||||
See-also:
|
See-also:
|
||||||
- abstract-unix-socket
|
- abstract-unix-socket
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@ Long: upload-file
|
||||||
Short: T
|
Short: T
|
||||||
Arg: <file>
|
Arg: <file>
|
||||||
Help: Transfer local FILE to destination
|
Help: Transfer local FILE to destination
|
||||||
Category: important upload
|
Category: important upload imap
|
||||||
Added: 4.0
|
Added: 4.0
|
||||||
Multi: per-URL
|
Multi: per-URL
|
||||||
See-also:
|
See-also:
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@ Long: upload-flags
|
||||||
Arg: <flags>
|
Arg: <flags>
|
||||||
Help: IMAP upload behavior
|
Help: IMAP upload behavior
|
||||||
Protocols: IMAP
|
Protocols: IMAP
|
||||||
Category: curl output
|
Category: curl output imap upload
|
||||||
Added: 8.13.0
|
Added: 8.13.0
|
||||||
Multi: single
|
Multi: single
|
||||||
See-also:
|
See-also:
|
||||||
|
|
|
||||||
|
|
@ -1127,7 +1127,7 @@ HEAD
|
||||||
$bitmask .= ' | ';
|
$bitmask .= ' | ';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
$bitmask =~ s/(?=.{76}).{1,76}\|/$&\n /g;
|
$bitmask =~ s/(?=.{75}).{1,75}\|/$&\n /g;
|
||||||
my $arg = $arglong{$long};
|
my $arg = $arglong{$long};
|
||||||
if($arg) {
|
if($arg) {
|
||||||
$opt .= " $arg";
|
$opt .= " $arg";
|
||||||
|
|
|
||||||
|
|
@ -51,6 +51,7 @@ static const struct category_descriptors categories[] = {
|
||||||
{ "http", "HTTP and HTTPS protocol", CURLHELP_HTTP },
|
{ "http", "HTTP and HTTPS protocol", CURLHELP_HTTP },
|
||||||
{ "imap", "IMAP protocol", CURLHELP_IMAP },
|
{ "imap", "IMAP protocol", CURLHELP_IMAP },
|
||||||
{ "ldap", "LDAP protocol", CURLHELP_LDAP },
|
{ "ldap", "LDAP protocol", CURLHELP_LDAP },
|
||||||
|
{ "mqtt", "MQTT protocol", CURLHELP_MQTT },
|
||||||
{ "output", "File system output", CURLHELP_OUTPUT },
|
{ "output", "File system output", CURLHELP_OUTPUT },
|
||||||
{ "pop3", "POP3 protocol", CURLHELP_POP3 },
|
{ "pop3", "POP3 protocol", CURLHELP_POP3 },
|
||||||
{ "post", "HTTP POST specific", CURLHELP_POST },
|
{ "post", "HTTP POST specific", CURLHELP_POST },
|
||||||
|
|
|
||||||
|
|
@ -85,6 +85,7 @@ struct helptxt {
|
||||||
#define CURLHELP_TLS (1 << 23)
|
#define CURLHELP_TLS (1 << 23)
|
||||||
#define CURLHELP_UPLOAD (1 << 24)
|
#define CURLHELP_UPLOAD (1 << 24)
|
||||||
#define CURLHELP_VERBOSE (1 << 25)
|
#define CURLHELP_VERBOSE (1 << 25)
|
||||||
|
#define CURLHELP_MQTT (1 << 26)
|
||||||
|
|
||||||
#define CURLHELP_ALL 0xfffffffU
|
#define CURLHELP_ALL 0xfffffffU
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -36,7 +36,7 @@
|
||||||
const struct helptxt helptext[] = {
|
const struct helptxt helptext[] = {
|
||||||
{ " --abstract-unix-socket <path>",
|
{ " --abstract-unix-socket <path>",
|
||||||
"Connect via abstract Unix domain socket",
|
"Connect via abstract Unix domain socket",
|
||||||
CURLHELP_CONNECTION },
|
CURLHELP_CONNECTION | CURLHELP_HTTP },
|
||||||
{ " --alt-svc <filename>",
|
{ " --alt-svc <filename>",
|
||||||
"Enable alt-svc with this cache file",
|
"Enable alt-svc with this cache file",
|
||||||
CURLHELP_HTTP },
|
CURLHELP_HTTP },
|
||||||
|
|
@ -51,7 +51,7 @@ const struct helptxt helptext[] = {
|
||||||
CURLHELP_AUTH | CURLHELP_HTTP },
|
CURLHELP_AUTH | CURLHELP_HTTP },
|
||||||
{ " --basic",
|
{ " --basic",
|
||||||
"HTTP Basic Authentication",
|
"HTTP Basic Authentication",
|
||||||
CURLHELP_AUTH },
|
CURLHELP_AUTH | CURLHELP_HTTP },
|
||||||
{ " --ca-native",
|
{ " --ca-native",
|
||||||
"Load CA certs from the OS",
|
"Load CA certs from the OS",
|
||||||
CURLHELP_TLS },
|
CURLHELP_TLS },
|
||||||
|
|
@ -78,7 +78,7 @@ const struct helptxt helptext[] = {
|
||||||
CURLHELP_HTTP },
|
CURLHELP_HTTP },
|
||||||
{ " --compressed-ssh",
|
{ " --compressed-ssh",
|
||||||
"Enable SSH compression",
|
"Enable SSH compression",
|
||||||
CURLHELP_SCP | CURLHELP_SSH },
|
CURLHELP_SCP | CURLHELP_SFTP | CURLHELP_SSH },
|
||||||
{ "-K, --config <file>",
|
{ "-K, --config <file>",
|
||||||
"Read config from a file",
|
"Read config from a file",
|
||||||
CURLHELP_CURL },
|
CURLHELP_CURL },
|
||||||
|
|
@ -113,8 +113,9 @@ const struct helptxt helptext[] = {
|
||||||
"(EC) TLS key exchange algorithms to request",
|
"(EC) TLS key exchange algorithms to request",
|
||||||
CURLHELP_TLS },
|
CURLHELP_TLS },
|
||||||
{ "-d, --data <data>",
|
{ "-d, --data <data>",
|
||||||
"HTTP POST data",
|
"Post data",
|
||||||
CURLHELP_IMPORTANT | CURLHELP_HTTP | CURLHELP_POST | CURLHELP_UPLOAD },
|
CURLHELP_IMPORTANT | CURLHELP_HTTP | CURLHELP_POST | CURLHELP_UPLOAD |
|
||||||
|
CURLHELP_MQTT },
|
||||||
{ " --data-ascii <data>",
|
{ " --data-ascii <data>",
|
||||||
"HTTP POST ASCII data",
|
"HTTP POST ASCII data",
|
||||||
CURLHELP_HTTP | CURLHELP_POST | CURLHELP_UPLOAD },
|
CURLHELP_HTTP | CURLHELP_POST | CURLHELP_UPLOAD },
|
||||||
|
|
@ -211,7 +212,8 @@ const struct helptxt helptext[] = {
|
||||||
CURLHELP_SMTP },
|
CURLHELP_SMTP },
|
||||||
{ " --form-escape",
|
{ " --form-escape",
|
||||||
"Escape form fields using backslash",
|
"Escape form fields using backslash",
|
||||||
CURLHELP_HTTP | CURLHELP_UPLOAD | CURLHELP_POST },
|
CURLHELP_HTTP | CURLHELP_UPLOAD | CURLHELP_POST | CURLHELP_IMAP |
|
||||||
|
CURLHELP_SMTP },
|
||||||
{ " --form-string <name=string>",
|
{ " --form-string <name=string>",
|
||||||
"Specify multipart MIME data",
|
"Specify multipart MIME data",
|
||||||
CURLHELP_HTTP | CURLHELP_UPLOAD | CURLHELP_POST | CURLHELP_SMTP |
|
CURLHELP_HTTP | CURLHELP_UPLOAD | CURLHELP_POST | CURLHELP_SMTP |
|
||||||
|
|
@ -360,13 +362,13 @@ const struct helptxt helptext[] = {
|
||||||
CURLHELP_CONNECTION | CURLHELP_TIMEOUT },
|
CURLHELP_CONNECTION | CURLHELP_TIMEOUT },
|
||||||
{ " --key <key>",
|
{ " --key <key>",
|
||||||
"Private key filename",
|
"Private key filename",
|
||||||
CURLHELP_TLS | CURLHELP_SSH },
|
CURLHELP_TLS | CURLHELP_SFTP | CURLHELP_SCP | CURLHELP_SSH },
|
||||||
{ " --key-type <type>",
|
{ " --key-type <type>",
|
||||||
"Private key file type (DER/PEM/ENG)",
|
"Private key file type (DER/PEM/ENG)",
|
||||||
CURLHELP_TLS },
|
CURLHELP_TLS },
|
||||||
{ " --knownhosts <file>",
|
{ " --knownhosts <file>",
|
||||||
"Specify knownhosts path",
|
"Specify knownhosts path",
|
||||||
CURLHELP_SSH },
|
CURLHELP_SFTP | CURLHELP_SCP | CURLHELP_SSH },
|
||||||
{ " --krb <level>",
|
{ " --krb <level>",
|
||||||
"Enable Kerberos with security <level>",
|
"Enable Kerberos with security <level>",
|
||||||
CURLHELP_DEPRECATED },
|
CURLHELP_DEPRECATED },
|
||||||
|
|
@ -409,7 +411,7 @@ const struct helptxt helptext[] = {
|
||||||
CURLHELP_CURL },
|
CURLHELP_CURL },
|
||||||
{ " --max-filesize <bytes>",
|
{ " --max-filesize <bytes>",
|
||||||
"Maximum file size to download",
|
"Maximum file size to download",
|
||||||
CURLHELP_CONNECTION },
|
CURLHELP_CONNECTION | CURLHELP_FTP | CURLHELP_HTTP | CURLHELP_MQTT },
|
||||||
{ " --max-redirs <num>",
|
{ " --max-redirs <num>",
|
||||||
"Maximum number of redirects allowed",
|
"Maximum number of redirects allowed",
|
||||||
CURLHELP_HTTP },
|
CURLHELP_HTTP },
|
||||||
|
|
@ -470,7 +472,7 @@ const struct helptxt helptext[] = {
|
||||||
{ " --oauth2-bearer <token>",
|
{ " --oauth2-bearer <token>",
|
||||||
"OAuth 2 Bearer Token",
|
"OAuth 2 Bearer Token",
|
||||||
CURLHELP_AUTH | CURLHELP_IMAP | CURLHELP_POP3 | CURLHELP_SMTP |
|
CURLHELP_AUTH | CURLHELP_IMAP | CURLHELP_POP3 | CURLHELP_SMTP |
|
||||||
CURLHELP_LDAP },
|
CURLHELP_LDAP | CURLHELP_HTTP },
|
||||||
{ " --out-null",
|
{ " --out-null",
|
||||||
"Discard response data into the void",
|
"Discard response data into the void",
|
||||||
CURLHELP_OUTPUT },
|
CURLHELP_OUTPUT },
|
||||||
|
|
@ -494,7 +496,8 @@ const struct helptxt helptext[] = {
|
||||||
CURLHELP_CONNECTION | CURLHELP_CURL | CURLHELP_GLOBAL },
|
CURLHELP_CONNECTION | CURLHELP_CURL | CURLHELP_GLOBAL },
|
||||||
{ " --pass <phrase>",
|
{ " --pass <phrase>",
|
||||||
"Passphrase for the private key",
|
"Passphrase for the private key",
|
||||||
CURLHELP_SSH | CURLHELP_TLS | CURLHELP_AUTH },
|
CURLHELP_TLS | CURLHELP_SFTP | CURLHELP_SCP | CURLHELP_SSH |
|
||||||
|
CURLHELP_AUTH },
|
||||||
{ " --path-as-is",
|
{ " --path-as-is",
|
||||||
"Do not squash .. sequences in URL path",
|
"Do not squash .. sequences in URL path",
|
||||||
CURLHELP_CURL },
|
CURLHELP_CURL },
|
||||||
|
|
@ -560,7 +563,7 @@ const struct helptxt helptext[] = {
|
||||||
CURLHELP_PROXY | CURLHELP_TLS },
|
CURLHELP_PROXY | CURLHELP_TLS },
|
||||||
{ " --proxy-header <header/@file>",
|
{ " --proxy-header <header/@file>",
|
||||||
"Pass custom header(s) to proxy",
|
"Pass custom header(s) to proxy",
|
||||||
CURLHELP_PROXY },
|
CURLHELP_PROXY | CURLHELP_HTTP },
|
||||||
{ " --proxy-http2",
|
{ " --proxy-http2",
|
||||||
"Use HTTP/2 with HTTPS proxy",
|
"Use HTTP/2 with HTTPS proxy",
|
||||||
CURLHELP_HTTP | CURLHELP_PROXY },
|
CURLHELP_HTTP | CURLHELP_PROXY },
|
||||||
|
|
@ -644,7 +647,7 @@ const struct helptxt helptext[] = {
|
||||||
CURLHELP_HTTP },
|
CURLHELP_HTTP },
|
||||||
{ "-J, --remote-header-name",
|
{ "-J, --remote-header-name",
|
||||||
"Use the header-provided filename",
|
"Use the header-provided filename",
|
||||||
CURLHELP_OUTPUT },
|
CURLHELP_OUTPUT | CURLHELP_HTTP },
|
||||||
{ "-O, --remote-name",
|
{ "-O, --remote-name",
|
||||||
"Write output to file named as remote file",
|
"Write output to file named as remote file",
|
||||||
CURLHELP_IMPORTANT | CURLHELP_OUTPUT },
|
CURLHELP_IMPORTANT | CURLHELP_OUTPUT },
|
||||||
|
|
@ -684,10 +687,12 @@ const struct helptxt helptext[] = {
|
||||||
CURLHELP_CURL | CURLHELP_TIMEOUT },
|
CURLHELP_CURL | CURLHELP_TIMEOUT },
|
||||||
{ " --sasl-authzid <identity>",
|
{ " --sasl-authzid <identity>",
|
||||||
"Identity for SASL PLAIN authentication",
|
"Identity for SASL PLAIN authentication",
|
||||||
CURLHELP_AUTH },
|
CURLHELP_AUTH | CURLHELP_IMAP | CURLHELP_SMTP | CURLHELP_POP3 |
|
||||||
|
CURLHELP_LDAP },
|
||||||
{ " --sasl-ir",
|
{ " --sasl-ir",
|
||||||
"Initial response in SASL authentication",
|
"Initial response in SASL authentication",
|
||||||
CURLHELP_AUTH },
|
CURLHELP_AUTH | CURLHELP_IMAP | CURLHELP_POP3 | CURLHELP_LDAP |
|
||||||
|
CURLHELP_SMTP },
|
||||||
{ " --service-name <name>",
|
{ " --service-name <name>",
|
||||||
"SPNEGO service name",
|
"SPNEGO service name",
|
||||||
CURLHELP_AUTH },
|
CURLHELP_AUTH },
|
||||||
|
|
@ -696,7 +701,8 @@ const struct helptxt helptext[] = {
|
||||||
CURLHELP_CURL | CURLHELP_GLOBAL },
|
CURLHELP_CURL | CURLHELP_GLOBAL },
|
||||||
{ "-i, --show-headers",
|
{ "-i, --show-headers",
|
||||||
"Show response headers in output",
|
"Show response headers in output",
|
||||||
CURLHELP_IMPORTANT | CURLHELP_VERBOSE | CURLHELP_OUTPUT },
|
CURLHELP_IMPORTANT | CURLHELP_VERBOSE | CURLHELP_OUTPUT | CURLHELP_HTTP |
|
||||||
|
CURLHELP_FTP },
|
||||||
{ " --sigalgs <list>",
|
{ " --sigalgs <list>",
|
||||||
"TLS signature algorithms to use",
|
"TLS signature algorithms to use",
|
||||||
CURLHELP_TLS },
|
CURLHELP_TLS },
|
||||||
|
|
@ -739,7 +745,7 @@ const struct helptxt helptext[] = {
|
||||||
{ " --ssl",
|
{ " --ssl",
|
||||||
"Try enabling TLS",
|
"Try enabling TLS",
|
||||||
CURLHELP_TLS | CURLHELP_IMAP | CURLHELP_POP3 | CURLHELP_SMTP |
|
CURLHELP_TLS | CURLHELP_IMAP | CURLHELP_POP3 | CURLHELP_SMTP |
|
||||||
CURLHELP_LDAP },
|
CURLHELP_LDAP | CURLHELP_FTP },
|
||||||
{ " --ssl-allow-beast",
|
{ " --ssl-allow-beast",
|
||||||
"Allow security flaw to improve interop",
|
"Allow security flaw to improve interop",
|
||||||
CURLHELP_TLS },
|
CURLHELP_TLS },
|
||||||
|
|
@ -752,7 +758,7 @@ const struct helptxt helptext[] = {
|
||||||
{ " --ssl-reqd",
|
{ " --ssl-reqd",
|
||||||
"Require SSL/TLS",
|
"Require SSL/TLS",
|
||||||
CURLHELP_TLS | CURLHELP_IMAP | CURLHELP_POP3 | CURLHELP_SMTP |
|
CURLHELP_TLS | CURLHELP_IMAP | CURLHELP_POP3 | CURLHELP_SMTP |
|
||||||
CURLHELP_LDAP },
|
CURLHELP_LDAP | CURLHELP_FTP },
|
||||||
{ " --ssl-revoke-best-effort",
|
{ " --ssl-revoke-best-effort",
|
||||||
"Ignore missing cert CRL dist points",
|
"Ignore missing cert CRL dist points",
|
||||||
CURLHELP_TLS },
|
CURLHELP_TLS },
|
||||||
|
|
@ -845,13 +851,13 @@ const struct helptxt helptext[] = {
|
||||||
CURLHELP_VERBOSE | CURLHELP_GLOBAL },
|
CURLHELP_VERBOSE | CURLHELP_GLOBAL },
|
||||||
{ " --unix-socket <path>",
|
{ " --unix-socket <path>",
|
||||||
"Connect through this Unix domain socket",
|
"Connect through this Unix domain socket",
|
||||||
CURLHELP_CONNECTION },
|
CURLHELP_CONNECTION | CURLHELP_HTTP },
|
||||||
{ "-T, --upload-file <file>",
|
{ "-T, --upload-file <file>",
|
||||||
"Transfer local FILE to destination",
|
"Transfer local FILE to destination",
|
||||||
CURLHELP_IMPORTANT | CURLHELP_UPLOAD },
|
CURLHELP_IMPORTANT | CURLHELP_UPLOAD | CURLHELP_IMAP },
|
||||||
{ " --upload-flags <flags>",
|
{ " --upload-flags <flags>",
|
||||||
"IMAP upload behavior",
|
"IMAP upload behavior",
|
||||||
CURLHELP_CURL | CURLHELP_OUTPUT },
|
CURLHELP_CURL | CURLHELP_OUTPUT | CURLHELP_IMAP | CURLHELP_UPLOAD },
|
||||||
{ " --url <url/file>",
|
{ " --url <url/file>",
|
||||||
"URL(s) to work with",
|
"URL(s) to work with",
|
||||||
CURLHELP_CURL },
|
CURLHELP_CURL },
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
Usage: curl [options...] <url>
|
Usage: curl [options...] <url>
|
||||||
-d, --data <data> HTTP POST data
|
-d, --data <data> Post data
|
||||||
-f, --fail Fail fast with no output on HTTP errors
|
-f, --fail Fail fast with no output on HTTP errors
|
||||||
-I, --head Show document info only
|
-I, --head Show document info only
|
||||||
-H, --header <header/@file> Pass custom header(s) to server
|
-H, --header <header/@file> Pass custom header(s) to server
|
||||||
|
|
@ -17,7 +17,7 @@ Usage: curl [options...] <url>
|
||||||
This is not the full help; this menu is split into categories.
|
This is not the full help; this menu is split into categories.
|
||||||
Use "--help category" to get an overview of all categories, which are:
|
Use "--help category" to get an overview of all categories, which are:
|
||||||
auth, connection, curl, deprecated, dns, file, ftp, global, http, imap, ldap,%SP
|
auth, connection, curl, deprecated, dns, file, ftp, global, http, imap, ldap,%SP
|
||||||
output, pop3, post, proxy, scp, sftp, smtp, ssh, telnet, tftp, timeout, tls,%SP
|
mqtt, output, pop3, post, proxy, scp, sftp, smtp, ssh, telnet, tftp, timeout,%SP
|
||||||
upload, verbose.
|
tls, upload, verbose.
|
||||||
Use "--help all" to list all options
|
Use "--help all" to list all options
|
||||||
Use "--help [option]" to view documentation for a given option
|
Use "--help [option]" to view documentation for a given option
|
||||||
|
|
|
||||||
|
|
@ -39,6 +39,7 @@ Unknown category provided, here is a list of all categories:
|
||||||
http HTTP and HTTPS protocol
|
http HTTP and HTTPS protocol
|
||||||
imap IMAP protocol
|
imap IMAP protocol
|
||||||
ldap LDAP protocol
|
ldap LDAP protocol
|
||||||
|
mqtt MQTT protocol
|
||||||
output File system output
|
output File system output
|
||||||
pop3 POP3 protocol
|
pop3 POP3 protocol
|
||||||
post HTTP POST specific
|
post HTTP POST specific
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue