-
-
Notifications
You must be signed in to change notification settings - Fork 11
Command line equivalents table
Andrew Lambert edited this page May 26, 2021
·
20 revisions
This table lists the various curl command line options and their equivalents in this libcurl binding. Not all command line options have equivalents, and not all features of libcurl can be expressed in terms of a command line.
Command line option | Binding equivalent | Comment |
---|---|---|
--abstract-unix-socket |
TBD | TBD |
--alt-svc |
TBD | TBD |
--anyauth |
cURLManager.HTTPAuthenticationMethod | TBD |
-a , --append
|
EasyHandle.SetOption(libcURL.Opts.APPEND, True) |
TBD |
--aws-sigv4 |
TBD | TBD |
--basic |
cURLManager.HTTPAuthenticationMethod | TBD |
--cacert |
TBD | TBD |
--capath |
TBD | TBD |
--cert-status |
TBD | TBD |
--cert-type |
TBD | TBD |
-E , --cert
|
TBD | TBD |
--ciphers |
TBD | TBD |
--compressed-ssh |
TBD | TBD |
--compressed |
TBD | TBD |
-K , --config
|
TBD | TBD |
--connect-timeout |
TBD | TBD |
--connect-to |
TBD | TBD |
-C , --continue-at
|
TBD | TBD |
-c , --cookie-jar
|
CookieEngine | TBD |
-b , --cookie
|
CookieEngine | TBD |
--create-dirs |
N/A | Application-defined behavior. |
--create-file-mode |
TBD | TBD |
--crlf |
TBD | TBD |
--crlfile |
TBD | TBD |
--curves |
TBD | TBD |
--data-ascii , --data-binary , --data-raw , --data-urlencode , -d , --data
|
Various | Uploaded data can be supplied in a number of ways. |
--delegation |
TBD | TBD |
--digest |
TBD | TBD |
--disable-eprt |
TBD | TBD |
--disable-epsv |
TBD | TBD |
-q , --disable
|
TBD | TBD |
--disallow-username-in-url |
N/A | Application-defined behavior. |
--dns-interface |
TBD | TBD |
--dns-ipv4-addr |
TBD | TBD |
--dns-ipv6-addr |
TBD | TBD |
--dns-servers |
TBD | TBD |
--doh-cert-status |
TBD | TBD |
--doh-insecure |
TBD | TBD |
--doh-url |
TBD | TBD |
-D , --dump-header
|
N/A | Application-defined behavior. |
--egd-file |
TBD | TBD |
--engine |
TBD | TBD |
--etag-compare |
N/A | Application-defined behavior. |
--etag-save |
N/A | Application-defined behavior. |
--expect100-timeout |
TBD | TBD |
--fail-early |
TBD | TBD |
--fail-with-body |
TBD | TBD |
-f , --fail
|
EasyHandle.FailOnServerError | TBD |
--false-start |
TBD | TBD |
--form-string , -F , --form
|
cURLClient.Post, EasyHandle.SetFormData | TBD |
--ftp-account |
TBD | TBD |
--ftp-alternative-to-user |
TBD | TBD |
--ftp-create-dirs |
EasyHandle.SetOption(libcURL.Opts.FTP_CREATE_MISSING_DIRS, True) |
TBD |
--ftp-method |
EasyHandle.CWDMethod | TBD |
--ftp-pasv |
TBD | TBD |
-P , --ftp-port
|
TBD | TBD |
--ftp-pret |
TBD | TBD |
--ftp-skip-pasv-ip |
TBD | TBD |
--ftp-ssl-ccc-mode |
TBD | TBD |
--ftp-ssl-ccc |
TBD | TBD |
--ftp-ssl-control |
TBD | TBD |
-G , --get
|
cURLManager.SetRequestMethod | TBD |
-g, --globoff |
N/A | Application-defined behavior. |
--happy-eyeballs-timeout-ms |
TBD | TBD |
--haproxy-protocol |
TBD | TBD |
-I , --head
|
cURLClient.Head | TBD |
-H , --header
|
cURLManager.RequestHeaders | TBD |
-h , --help
|
N/A | Application-defined behavior. |
--hostpubmd5 |
TBD | TBD |
--hsts |
TBD | TBD |
--http0.9 , -0 , --http1.0 , --http1.1 , --http2-prior-knowledge , --http2 , --http3
|
EasyHandle.HTTPVersion | TBD |
--ignore-content-length |
N/A | Application-defined behavior. |
-i , --include
|
EasyHandle.SetOption(libcURL.Opts.HEADER, True) |
TBD |
-k , --insecure
|
EasyHandle.Secure | TBD |
--interface |
EasyHandle.NetworkInterface | TBD |
-4 , --ipv4 , -6 , --ipv6
|
EasyHandle.IPVersion | TBD |
-j , --junk-session-cookies
|
CookieEngine | TBD |
--keepalive-time |
TBD | TBD |
--key-type |
TBD | TBD |
--key |
TBD | TBD |
--krb |
TBD | TBD |
--libcurl |
N/A | Application-defined behavior. |
--limit-rate |
TBD | TBD |
-l , --list-only
|
TBD | TBD |
--local-port |
TBD | TBD |
--location-trusted |
TBD | TBD |
-L , --location
|
EasyHandle.FollowRedirects | TBD |
--login-options |
TBD | TBD |
--mail-auth |
TBD | TBD |
--mail-from |
TBD | TBD |
--mail-rcpt-allowfails |
TBD | TBD |
--mail-rcpt |
TBD | TBD |
-M , --manual
|
N/A | Application-defined behavior. |
--max-filesize |
TBD | TBD |
--max-redirs |
TBD | TBD |
-m , --max-time
|
TBD | TBD |
--metalink |
N/A | Application-defined behavior. |
--negotiate |
TBD | TBD |
--netrc-file |
TBD | TBD |
--netrc-optional |
TBD | TBD |
-n , --netrc
|
TBD | TBD |
-: , --next
|
MultiHandle | See multiple file download example. |
--no-alpn |
TBD | TBD |
-N , --no-buffer
|
N/A | Application-defined behavior. |
--no-keepalive |
TBD | TBD |
--no-npn |
TBD | TBD |
--no-progress-meter |
TBD | TBD |
--no-sessionid |
TBD | TBD |
--noproxy |
TBD | TBD |
--ntlm-wb |
TBD | TBD |
--ntlm |
TBD | TBD |
--oauth2-bearer |
TBD | TBD |
--output-dir |
TBD | TBD |
-o , --output
|
N/A | Application-defined behavior. |
--parallel-immediate |
TBD | TBD |
--parallel-max |
TBD | TBD |
-Z , --parallel
|
TBD | TBD |
--pass |
TBD | TBD |
--path-as-is |
TBD | TBD |
--pinnedpubkey |
TBD | TBD |
--post301 , --post302 , --post303
|
EasyHandle.HTTPPreserveMethod | TBD |
--preproxy |
TBD | TBD |
-# , --progress-bar
|
N/A | Application-defined behavior. |
--proto-default |
EasyHandle.SetOption(libcURL.Opts.DEFAULT_PROTOCOL, "https") |
TBD |
--proto-redir |
EasyHandle.SetOption(libcURL.Opts.REDIR_PROTOCOLS, libcURL.Protocols.HTTPS) |
TBD |
--proto |
EasyHandle.SetOption(libcURL.Opts.PROTOCOLS, libcURL.Protocols.HTTPS) |
TBD |
--proxy-anyauth , --proxy-basic , --proxy-digest , --proxy-negotiate , --proxy-ntlm
|
ProxyEngine.SetAuthMethods | TBD |
--proxy-cacert , --proxy-capath
|
ProxyEngine.CA_ListFile | TBD |
--proxy-cert-type |
TBD | TBD |
--proxy-cert |
TBD | TBD |
--proxy-ciphers |
TBD | TBD |
--proxy-crlfile |
TBD | TBD |
--proxy-header |
ProxyEngine.SetProxyHeader | TBD |
--proxy-insecure |
ProxyEngine.Secure | TBD |
--proxy-key-type |
TBD | TBD |
--proxy-key |
TBD | TBD |
--proxy-pass |
TBD | TBD |
--proxy-pinnedpubkey |
TBD | TBD |
--proxy-service-name |
TBD | TBD |
--proxy-ssl-allow-beast |
TBD | TBD |
--proxy-ssl-auto-client-cert |
TBD | TBD |
--proxy-tls13-ciphers |
TBD | TBD |
--proxy-tlsauthtype |
TBD | TBD |
--proxy-tlspassword |
TBD | TBD |
--proxy-tlsuser |
TBD | TBD |
--proxy-tlsv1 |
TBD | TBD |
-U , --proxy-user
|
ProxyEngine.Username | TBD |
-x , --proxy
|
ProxyEngine.Address | TBD |
--proxy1.0 |
TBD | TBD |
-p , --proxytunnel
|
TBD | TBD |
--pubkey |
TBD | TBD |
-Q , --quote
|
EasyHandle.SetOption(libcURL.Opts.QUOTE, ListOfCmds) |
TBD |
--random-file |
TBD | TBD |
-r , --range
|
EasyHandle.SetOption(libcURL.Opts.RANGE, "0-199") |
TBD |
--raw |
TBD | TBD |
-e , --referer
|
EasyHandle.AutoReferer | TBD |
-J , --remote-header-name
|
TBD | TBD |
--remote-name-all |
N/A | Application-defined behavior. |
-O , --remote-name
|
N/A | Application-defined behavior. |
-R , --remote-time
|
TBD | TBD |
--request-target |
TBD | TBD |
-X , --request
|
cURLManager.SetRequestMethod | TBD |
--resolve |
TBD | TBD |
--retry-all-errors , --retry-connrefused , --retry-delay , --retry-max-time , --retry
|
N/A | Application-defined behavior. |
--sasl-authzid |
TBD | TBD |
--sasl-ir |
TBD | TBD |
--service-name |
TBD | TBD |
-S , --show-error
|
N/A | Application-defined behavior. |
-s , --silent
|
N/A | Application-defined behavior. |
--socks4 , --socks4a , --socks5
|
ProxyEngine.Type | TBD |
--socks5-basic , --socks5-gssapi-nec , --socks5-gssapi
|
ProxyEngine.SetAuthMethods | TBD |
--socks5-gssapi-service |
TBD | TBD |
--socks5-hostname |
TBD | TBD |
-Y , --speed-limit
|
TBD | TBD |
-y , --speed-time
|
TBD | TBD |
--ssl-allow-beast |
TBD | TBD |
--ssl-auto-client-cert |
TBD | TBD |
--ssl-no-revoke |
TBD | TBD |
--ssl-reqd , --ssl , -2 , --sslv2 , -3 , --sslv3
|
EasyHandle.ConnectionType | TBD |
--ssl-revoke-best-effort |
TBD | TBD |
--stderr |
N/A | Application-defined behavior. |
--styled-output |
N/A | Application-defined behavior. |
--suppress-connect-headers |
N/A | Application-defined behavior. |
--tcp-fastopen |
EasyHandle.SetOption(libcURL.Opts.TCP_FASTOPEN, True) |
TBD |
--tcp-nodelay |
EasyHandle.SetOption(libcURL.Opts.TCP_NODELAY, True) |
TBD |
-t , --telnet-option
|
TBD | TBD |
--tftp-blksize |
TBD | TBD |
--tftp-no-options |
TBD | TBD |
-z , --time-cond
|
TBD | TBD |
--tls-max |
TBD | TBD |
--tls13-ciphers |
TBD | TBD |
--tlsauthtype |
TBD | TBD |
--tlspassword |
TBD | TBD |
--tlsuser |
TBD | TBD |
--tlsv1.0 , --tlsv1.1 , --tlsv1.2 , --tlsv1.3 , -1 , --tlsv1
|
EasyHandle.SSLVersion | TBD |
--tr-encoding |
TBD | TBD |
--trace-ascii , --trace-time , --trace
|
N/A | Application-defined behavior. |
--unix-socket |
TBD | TBD |
-T , --upload-file
|
cURLClient.Put | TBD |
--url |
EasyHandle.URL | TBD |
-B , --use-ascii
|
TBD | TBD |
-A , --user-agent
|
EasyHandle.UserAgent | TBD |
-u , --user
|
EasyHandle.Username; cURLManager.Username | TBD |
-v , --verbose
|
EasyHandle.Verbose | TBD |
-V , --version
|
libcURL.Version | TBD |
-w , --write-out
|
N/A | Application-defined behavior. |
--xattr |
N/A | Application-defined behavior. |
Wiki home | Project page | Bugs | Become a sponsor
Text and code examples are Copyright ©2014-24 Andrew Lambert, offered under the CC BY-SA 3.0 License.