curl.exe
是一个命令行工具,用于在Windows操作系统中发送HTTP请求。curl.exe
提供了详细的帮助文档,可以帮助您了解其功能和使用方法。以下是使用curl.exe
帮助的完整攻略,包括两个示例说明。
步骤1:打开帮助文档
要打开curl.exe
的帮助文档,您可以在命令行中输入以下命令:
curl --help
在上述命令中,--help
选项用于打开帮助文档。
步骤2:查看帮助文档
打开帮助文档后,您可以查看curl.exe
的详细信息和使用方法。以下是帮助文档的一部分:
“`
Usage: curl [options…]
–abstract-unix-socket
–anyauth Pick any authentication method (H)
-a, –append Append to target file when uploading (FTP/SFTP)
–aws-sigv4
–basic Use HTTP Basic Authentication (H)
–cacert
–capath
-E, –cert
–cert-status Verify the status of the server certificate (SSL)
–cert-type
–ciphers SSL ciphers to use (SSL)
–compressed Request compressed response (using deflate or gzip)
–compressed-ssh Enable SSH compression
-K, –config
–connect-timeout
–connect-to
–continue-at
–create-dirs Create necessary local directory hierarchy
-C, –continue Resume/continue transfer (HTTP/FTP/FILE)
–crlf Convert LF to CRLF in upload
–crlfile
–curves Allowed SSL elliptic curves (SSL)
–data HTTP POST data (H)
–data-ascii HTTP POST ASCII data (H)
–data-binary HTTP POST binary data (H)
–data-raw HTTP POST data, ‘@’ allowed (H)
–data-urlencode HTTP POST data url encoded (H)
–delegation
–digest Use HTTP Digest Authentication (H)
–disable-eprt Inhibit using EPRT or LPRT (default on)
–disable-epsv Inhibit using EPSV (default on)
–disallow-username-in-url Disallow username in url (H)
-D, –dump-header
–egd-file
–engine
–expect100-timeout
–fail Fail silently (no output at all) on HTTP errors (H)
–fail-early Fail on first transfer error, do not continue (H)
-f, –fail-with-body Fail on HTTP errors with response codes >= 400
–false-start Enable TLS False Start
-F, –form
–form-string
–ftp-account Account data string (FTP)
–ftp-alternative-to-user
–ftp-create-dirs Create the remote dirs if not present (FTP)
–ftp-method [multicwd/nocwd/singlecwd] Control CWD usage (FTP)
–ftp-pasv Use PASV/EPSV instead of PORT (FTP)
-P, –ftp-port
–ftp-pret Send PRET before PASV (FTP)
–ftp-skip-pasv-ip Skip the IP address for PASV (FTP)
–ftp-ssl-ccc Send CCC after authenticating (FTP)
–ftp-ssl-ccc-mode
–ftp-ssl-control Require SSL/TLS for FTP login, clear for transfer (SSL/FTP)
–ftp-ssl Use SSL/TLS for the FTP session (SSL/FTP)
–ftp-ssl-reqd Require SSL/TLS for the FTP session (SSL/FTP)
–ftp-ssl-allow-beast Allow security flaw to improve compatibility (SSL/FTP)
–ftp-ssl-protect-data Require SSL/TLS for the FTP data channel (SSL/FTP)
–ftp-ssl-protect-list Require SSL/TLS for the FTP list command (SSL/FTP)
–ftp-type
–ftp-syst Override the default FTP system type (FTP)
–globoff Disable URL sequences and ranges using {} and []
-g, –globoff Disable URL sequences and ranges using {} and []
–happy-eyeballs-timeout-ms
–haproxy-protocol Send HAProxy PROXY protocol v1 header
-I, –head Show document info only
–header header/@file Pass custom header(s) to server (H)
–hostpubmd5
-0, –http1.0 Use HTTP 1.0 (H)
–http1.1 Use HTTP 1.1 (H)
–http2-prior-knowledge Use HTTP 2 without HTTP/1.1 Upgrade (H)
–ignore-content-length Ignore the size of the remote resource (H)
–ignore-errors Ignore all errors (H)
–include Include protocol response headers in the output (H/F)
-i, –include Include protocol response headers in the output (H/F)
-k, –insecure Allow insecure server connections when using SSL (H)
–interface
–ipv4 Resolve names to IPv4 addresses only
–ipv6 Resolve names to IPv6 addresses only
-j, –junk-session-cookies Ignore session cookies read from file (H)
–keepalive-time
–key
–key-type
–krb
–libcurl
–limit-rate
-l, –list-only List only mode (FTP)
–local-port
-L, –location Follow redirects (H)
–location-trusted Like –location, and send auth to other hosts (H)
–login-options
-M, –manual Display the full manual
–mail-from
–mail-rcpt
–mail-auth Originator address of the original email (SMTP)
–max-filesize
–max-redirs
-m, –max-time
–metalink Process given URLs as metalink XML file
–negotiate Use HTTP Negotiate (SPNEGO) authentication (H)
–netrc-file
-n, –netrc Must read .netrc for user name and password
–netrc-optional Use either .netrc or URL; overrides -n
–netrc-file
–no-alpn Disable the ALPN TLS extension
–no-buffer Disable buffering of the output stream
–no-keepalive Disable TCP keepalive on the connection
–no-npn Disable the NPN TLS extension
–no-sessionid Disable SSL session-ID reusing (SSL)
–noproxy
–ntlm Use HTTP NTLM authentication (H)
–ntlm-wb Use HTTP NTLM authentication with winbind (H)
–oauth2-bearer
–output
-o, –output
–pass
–path-as-is Do not squash .. sequences in URL path
–pinnedpubkey
–post301 Do not switch to GET after following a 301 redirect (H)
–post302 Do not switch to GET after following a 302 redirect (H)
–post303 Do not switch to GET after following a 303 redirect (H)
–preproxy [protocol://]host[:port] Use this proxy first (H)
–proto
–proto-default
–proto-redir
–proxy
–proxy-anyauth Pick any proxy authentication method (H)
–proxy-basic Use Basic authentication on the proxy (H)
–proxy-cacert
–proxy-capath
–proxy-cert
–proxy-cert-type
–proxy-ciphers
- SSL ciphers to use for proxy (SSL)
–proxy-crlfile
–proxy-digest Use Digest authentication on the proxy (H)
–proxy-header header/@file Pass custom header(s) to proxy (H)
–proxy-insecure Allow connections to proxies with self-signed certs (H)
–proxy-key
–proxy-key-type
–proxy-negotiate Use HTTP Negotiate (SPNEGO) authentication on the proxy (H)
–proxy-ntlm Use NTLM authentication on the proxy (H)
–proxy-pass
–proxy-pinnedpubkey
–proxy-service-name
–proxy-ssl-allow-beast Allow security flaw to improve compatibility (SSL)
–proxy-tls13-ciphers
- TLS 1.3 proxy cipher suites to use (TLS 1.3)
–proxy-tlsauthtype
–proxy-tlspassword
–proxy-tlsuser
–proxy-tls13-legacy Allow TLS 1.3 to negotiate TLS 1.2-style cipher suites (TLS 1.3)
–proxy-tls13-sigs
- TLS 1.3 proxy signature algorithms to use (TLS 1.3)
–proxy-tls13-ciphersuites
- TLS 1.3 proxy cipher suites to use (TLS 1.3)
–proxy-tls13-priorities
–proxy-tls13-variants
- TLS 1.3 proxy cipher variants to use (TLS 1.3)
–proxy-tls13-cert-types
- TLS 1.3 proxy certificate types to use (TLS 1.3)
–proxy-tls13-keylog
–proxy-tls13-ctx
–proxy-tls13-signature-algorithms
- TLS 1.3 proxy signature algorithms to use (TLS 1.3)
–proxy-tls13-max-send-fragment=
–proxy-tls13-max-recv-fragment=
–proxy-tls13-session-ticket
–proxy-tls13-session-ticket-key
–proxy-tls13-session-ticket-key-method
–proxy-tls13-session-ticket-key-is-raw
–proxy-tls13-early-data
–proxy-tls13-early-data-max=
–proxy-tls13-early-data-len=
–proxy-tls13-early-data-info=
–proxy-tls13-early-data-context=
–proxy-tls13-early-data-secrets=
–proxy-tls13-early-data-secrets-raw=
–proxy-tls13-early-data-cipher=
–proxy-tls13-early-data-secrets-cipher=
–proxy-tls13-early-data-secrets-version=
–proxy-tls13-early-data-secrets-label=