Add files using upload-large-folder tool
Browse filesThis view is limited to 50 files because it contains too many changes.
See raw diff
- local-test-curl-full-01/afc-curl/docs/cmdline-opts/.gitignore +5 -0
- local-test-curl-full-01/afc-curl/docs/cmdline-opts/CMakeLists.txt +42 -0
- local-test-curl-full-01/afc-curl/docs/cmdline-opts/_DESCRIPTION.md +11 -0
- local-test-curl-full-01/afc-curl/docs/cmdline-opts/_ENVIRONMENT.md +114 -0
- local-test-curl-full-01/afc-curl/docs/cmdline-opts/_FILES.md +6 -0
- local-test-curl-full-01/afc-curl/docs/cmdline-opts/_GLOBBING.md +40 -0
- local-test-curl-full-01/afc-curl/docs/cmdline-opts/_NAME.md +4 -0
- local-test-curl-full-01/afc-curl/docs/cmdline-opts/_OPTIONS.md +29 -0
- local-test-curl-full-01/afc-curl/docs/cmdline-opts/_PROTOCOLS.md +53 -0
- local-test-curl-full-01/afc-curl/docs/cmdline-opts/_PROXYPREFIX.md +22 -0
- local-test-curl-full-01/afc-curl/docs/cmdline-opts/_SEEALSO.md +5 -0
- local-test-curl-full-01/afc-curl/docs/cmdline-opts/_VARIABLES.md +44 -0
- local-test-curl-full-01/afc-curl/docs/cmdline-opts/_VERSION.md +15 -0
- local-test-curl-full-01/afc-curl/docs/cmdline-opts/abstract-unix-socket.md +21 -0
- local-test-curl-full-01/afc-curl/docs/cmdline-opts/alt-svc.md +28 -0
- local-test-curl-full-01/afc-curl/docs/cmdline-opts/anyauth.md +30 -0
- local-test-curl-full-01/afc-curl/docs/cmdline-opts/append.md +23 -0
- local-test-curl-full-01/afc-curl/docs/cmdline-opts/aws-sigv4.md +30 -0
- local-test-curl-full-01/afc-curl/docs/cmdline-opts/basic.md +23 -0
- local-test-curl-full-01/afc-curl/docs/cmdline-opts/cacert.md +46 -0
- local-test-curl-full-01/afc-curl/docs/cmdline-opts/capath.md +29 -0
- local-test-curl-full-01/afc-curl/docs/cmdline-opts/cert-status.md +25 -0
- local-test-curl-full-01/afc-curl/docs/cmdline-opts/cert-type.md +26 -0
- local-test-curl-full-01/afc-curl/docs/cmdline-opts/ciphers.md +25 -0
- local-test-curl-full-01/afc-curl/docs/cmdline-opts/config.md +84 -0
- local-test-curl-full-01/afc-curl/docs/cmdline-opts/connect-to.md +40 -0
- local-test-curl-full-01/afc-curl/docs/cmdline-opts/continue-at.md +32 -0
- local-test-curl-full-01/afc-curl/docs/cmdline-opts/cookie-jar.md +39 -0
- local-test-curl-full-01/afc-curl/docs/cmdline-opts/create-dirs.md +26 -0
- local-test-curl-full-01/afc-curl/docs/cmdline-opts/create-file-mode.md +23 -0
- local-test-curl-full-01/afc-curl/docs/cmdline-opts/crlfile.md +21 -0
- local-test-curl-full-01/afc-curl/docs/cmdline-opts/curves.md +28 -0
- local-test-curl-full-01/afc-curl/docs/cmdline-opts/data-binary.md +32 -0
- local-test-curl-full-01/afc-curl/docs/cmdline-opts/data-raw.md +21 -0
- local-test-curl-full-01/afc-curl/docs/cmdline-opts/data-urlencode.md +51 -0
- local-test-curl-full-01/afc-curl/docs/cmdline-opts/data.md +49 -0
- local-test-curl-full-01/afc-curl/docs/cmdline-opts/delegation.md +30 -0
- local-test-curl-full-01/afc-curl/docs/cmdline-opts/digest.md +23 -0
- local-test-curl-full-01/afc-curl/docs/cmdline-opts/disable-eprt.md +32 -0
- local-test-curl-full-01/afc-curl/docs/cmdline-opts/disable.md +20 -0
- local-test-curl-full-01/afc-curl/docs/cmdline-opts/disallow-username-in-url.md +18 -0
- local-test-curl-full-01/afc-curl/docs/cmdline-opts/dns-ipv4-addr.md +23 -0
- local-test-curl-full-01/afc-curl/docs/cmdline-opts/dns-ipv6-addr.md +23 -0
- local-test-curl-full-01/afc-curl/docs/cmdline-opts/doh-cert-status.md +26 -0
- local-test-curl-full-01/afc-curl/docs/cmdline-opts/doh-url.md +30 -0
- local-test-curl-full-01/afc-curl/docs/cmdline-opts/egd-file.md +23 -0
- local-test-curl-full-01/afc-curl/docs/cmdline-opts/engine.md +22 -0
- local-test-curl-full-01/afc-curl/docs/cmdline-opts/etag-compare.md +27 -0
- local-test-curl-full-01/afc-curl/docs/cmdline-opts/etag-save.md +22 -0
- local-test-curl-full-01/afc-curl/docs/cmdline-opts/fail-early.md +32 -0
local-test-curl-full-01/afc-curl/docs/cmdline-opts/.gitignore
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al.
|
| 2 |
+
#
|
| 3 |
+
# SPDX-License-Identifier: curl
|
| 4 |
+
|
| 5 |
+
curl.txt
|
local-test-curl-full-01/afc-curl/docs/cmdline-opts/CMakeLists.txt
ADDED
|
@@ -0,0 +1,42 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#***************************************************************************
|
| 2 |
+
# _ _ ____ _
|
| 3 |
+
# Project ___| | | | _ \| |
|
| 4 |
+
# / __| | | | |_) | |
|
| 5 |
+
# | (__| |_| | _ <| |___
|
| 6 |
+
# \___|\___/|_| \_\_____|
|
| 7 |
+
#
|
| 8 |
+
# Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al.
|
| 9 |
+
#
|
| 10 |
+
# This software is licensed as described in the file COPYING, which
|
| 11 |
+
# you should have received as part of this distribution. The terms
|
| 12 |
+
# are also available at https://curl.se/docs/copyright.html.
|
| 13 |
+
#
|
| 14 |
+
# You may opt to use, copy, modify, merge, publish, distribute and/or sell
|
| 15 |
+
# copies of the Software, and permit persons to whom the Software is
|
| 16 |
+
# furnished to do so, under the terms of the COPYING file.
|
| 17 |
+
#
|
| 18 |
+
# This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
|
| 19 |
+
# KIND, either express or implied.
|
| 20 |
+
#
|
| 21 |
+
# SPDX-License-Identifier: curl
|
| 22 |
+
#
|
| 23 |
+
###########################################################################
|
| 24 |
+
# Get 'DPAGES' variable
|
| 25 |
+
transform_makefile_inc("Makefile.inc" "${CMAKE_CURRENT_BINARY_DIR}/Makefile.inc.cmake")
|
| 26 |
+
include("${CMAKE_CURRENT_BINARY_DIR}/Makefile.inc.cmake")
|
| 27 |
+
|
| 28 |
+
add_custom_command(OUTPUT "${CURL_MANPAGE}" "${CURL_ASCIIPAGE}"
|
| 29 |
+
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
|
| 30 |
+
COMMAND "${PERL_EXECUTABLE}" "${PROJECT_SOURCE_DIR}/scripts/managen" mainpage ${DPAGES} > "${CURL_MANPAGE}"
|
| 31 |
+
COMMAND "${PERL_EXECUTABLE}" "${PROJECT_SOURCE_DIR}/scripts/managen" ascii ${DPAGES} > "${CURL_ASCIIPAGE}"
|
| 32 |
+
DEPENDS
|
| 33 |
+
"${PROJECT_SOURCE_DIR}/scripts/managen"
|
| 34 |
+
${DPAGES}
|
| 35 |
+
VERBATIM
|
| 36 |
+
)
|
| 37 |
+
|
| 38 |
+
add_custom_target(generate-curl.1 ALL DEPENDS "${CURL_MANPAGE}")
|
| 39 |
+
|
| 40 |
+
if(NOT CURL_DISABLE_INSTALL)
|
| 41 |
+
install(FILES "${CURL_MANPAGE}" DESTINATION "${CMAKE_INSTALL_MANDIR}/man1")
|
| 42 |
+
endif()
|
local-test-curl-full-01/afc-curl/docs/cmdline-opts/_DESCRIPTION.md
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<!-- Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al. -->
|
| 2 |
+
<!-- SPDX-License-Identifier: curl -->
|
| 3 |
+
# DESCRIPTION
|
| 4 |
+
|
| 5 |
+
**curl** is a tool for transferring data from or to a server using URLs. It
|
| 6 |
+
supports these protocols: DICT, FILE, FTP, FTPS, GOPHER, GOPHERS, HTTP, HTTPS,
|
| 7 |
+
IMAP, IMAPS, LDAP, LDAPS, MQTT, POP3, POP3S, RTMP, RTMPS, RTSP, SCP, SFTP,
|
| 8 |
+
SMB, SMBS, SMTP, SMTPS, TELNET, TFTP, WS and WSS.
|
| 9 |
+
|
| 10 |
+
curl is powered by libcurl for all transfer-related features. See
|
| 11 |
+
*libcurl(3)* for details.
|
local-test-curl-full-01/afc-curl/docs/cmdline-opts/_ENVIRONMENT.md
ADDED
|
@@ -0,0 +1,114 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<!-- Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al. -->
|
| 2 |
+
<!-- SPDX-License-Identifier: curl -->
|
| 3 |
+
# ENVIRONMENT
|
| 4 |
+
The environment variables can be specified in lower case or upper case. The
|
| 5 |
+
lower case version has precedence. `http_proxy` is an exception as it is only
|
| 6 |
+
available in lower case.
|
| 7 |
+
|
| 8 |
+
Using an environment variable to set the proxy has the same effect as using
|
| 9 |
+
the --proxy option.
|
| 10 |
+
|
| 11 |
+
## `http_proxy` [protocol://]<host>[:port]
|
| 12 |
+
Sets the proxy server to use for HTTP.
|
| 13 |
+
|
| 14 |
+
## `HTTPS_PROXY` [protocol://]<host>[:port]
|
| 15 |
+
Sets the proxy server to use for HTTPS.
|
| 16 |
+
|
| 17 |
+
## `[url-protocol]_PROXY` [protocol://]<host>[:port]
|
| 18 |
+
Sets the proxy server to use for [url-protocol], where the protocol is a
|
| 19 |
+
protocol that curl supports and as specified in a URL. FTP, FTPS, POP3, IMAP,
|
| 20 |
+
SMTP, LDAP, etc.
|
| 21 |
+
|
| 22 |
+
## `ALL_PROXY` [protocol://]<host>[:port]
|
| 23 |
+
Sets the proxy server to use if no protocol-specific proxy is set.
|
| 24 |
+
|
| 25 |
+
## `NO_PROXY` <comma-separated list of hosts/domains>
|
| 26 |
+
list of hostnames that should not go through any proxy. If set to an asterisk
|
| 27 |
+
'*' only, it matches all hosts. Each name in this list is matched as either a
|
| 28 |
+
domain name which contains the hostname, or the hostname itself.
|
| 29 |
+
|
| 30 |
+
This environment variable disables use of the proxy even when specified with
|
| 31 |
+
the --proxy option. That is
|
| 32 |
+
|
| 33 |
+
NO_PROXY=direct.example.com curl -x http://proxy.example.com
|
| 34 |
+
http://direct.example.com
|
| 35 |
+
|
| 36 |
+
accesses the target URL directly, and
|
| 37 |
+
|
| 38 |
+
NO_PROXY=direct.example.com curl -x http://proxy.example.com
|
| 39 |
+
http://somewhere.example.com
|
| 40 |
+
|
| 41 |
+
accesses the target URL through the proxy.
|
| 42 |
+
|
| 43 |
+
The list of hostnames can also be include numerical IP addresses, and IPv6
|
| 44 |
+
versions should then be given without enclosing brackets.
|
| 45 |
+
|
| 46 |
+
IP addresses can be specified using CIDR notation: an appended slash and
|
| 47 |
+
number specifies the number of "network bits" out of the address to use in the
|
| 48 |
+
comparison (added in 7.86.0). For example "192.168.0.0/16" would match all
|
| 49 |
+
addresses starting with "192.168".
|
| 50 |
+
|
| 51 |
+
## `APPDATA` <dir>
|
| 52 |
+
On Windows, this variable is used when trying to find the home directory. If
|
| 53 |
+
the primary home variable are all unset.
|
| 54 |
+
|
| 55 |
+
## `COLUMNS` <terminal width>
|
| 56 |
+
If set, the specified number of characters is used as the terminal width when
|
| 57 |
+
the alternative progress-bar is shown. If not set, curl tries to figure it out
|
| 58 |
+
using other ways.
|
| 59 |
+
|
| 60 |
+
## `CURL_CA_BUNDLE` <file>
|
| 61 |
+
If set, it is used as the --cacert value. This environment variable is ignored
|
| 62 |
+
if Schannel is used as the TLS backend.
|
| 63 |
+
|
| 64 |
+
## `CURL_HOME` <dir>
|
| 65 |
+
If set, is the first variable curl checks when trying to find its home
|
| 66 |
+
directory. If not set, it continues to check *XDG_CONFIG_HOME*
|
| 67 |
+
|
| 68 |
+
## `CURL_SSL_BACKEND` <TLS backend>
|
| 69 |
+
If curl was built with support for "MultiSSL", meaning that it has built-in
|
| 70 |
+
support for more than one TLS backend, this environment variable can be set to
|
| 71 |
+
the case insensitive name of the particular backend to use when curl is
|
| 72 |
+
invoked. Setting a name that is not a built-in alternative makes curl stay
|
| 73 |
+
with the default.
|
| 74 |
+
|
| 75 |
+
SSL backend names (case-insensitive): **bearssl**, **gnutls**, **mbedtls**,
|
| 76 |
+
**openssl**, **rustls**, **schannel**, **secure-transport**, **wolfssl**
|
| 77 |
+
|
| 78 |
+
## `HOME` <dir>
|
| 79 |
+
If set, this is used to find the home directory when that is needed. Like when
|
| 80 |
+
looking for the default .curlrc. *CURL_HOME* and *XDG_CONFIG_HOME*
|
| 81 |
+
have preference.
|
| 82 |
+
|
| 83 |
+
## `QLOGDIR` <directory name>
|
| 84 |
+
If curl was built with HTTP/3 support, setting this environment variable to a
|
| 85 |
+
local directory makes curl produce **qlogs** in that directory, using file
|
| 86 |
+
names named after the destination connection id (in hex). Do note that these
|
| 87 |
+
files can become rather large. Works with the ngtcp2 and quiche QUIC backends.
|
| 88 |
+
|
| 89 |
+
## `SHELL`
|
| 90 |
+
Used on VMS when trying to detect if using a **DCL** or a **Unix** shell.
|
| 91 |
+
|
| 92 |
+
## `SSL_CERT_DIR` <dir>
|
| 93 |
+
If set, it is used as the --capath value. This environment variable is ignored
|
| 94 |
+
if Schannel is used as the TLS backend.
|
| 95 |
+
|
| 96 |
+
## `SSL_CERT_FILE` <path>
|
| 97 |
+
If set, it is used as the --cacert value. This environment variable is ignored
|
| 98 |
+
if Schannel is used as the TLS backend.
|
| 99 |
+
|
| 100 |
+
## `SSLKEYLOGFILE` <filename>
|
| 101 |
+
If you set this environment variable to a filename, curl stores TLS secrets
|
| 102 |
+
from its connections in that file when invoked to enable you to analyze the
|
| 103 |
+
TLS traffic in real time using network analyzing tools such as Wireshark. This
|
| 104 |
+
works with the following TLS backends: OpenSSL, LibreSSL (TLS 1.2 max),
|
| 105 |
+
BoringSSL, GnuTLS and wolfSSL.
|
| 106 |
+
|
| 107 |
+
## `USERPROFILE` <dir>
|
| 108 |
+
On Windows, this variable is used when trying to find the home directory. If
|
| 109 |
+
the other, primary, variable are all unset. If set, curl uses the path
|
| 110 |
+
**"$USERPROFILE\Application Data"**.
|
| 111 |
+
|
| 112 |
+
## `XDG_CONFIG_HOME` <dir>
|
| 113 |
+
If *CURL_HOME* is not set, this variable is checked when looking for a
|
| 114 |
+
default .curlrc file.
|
local-test-curl-full-01/afc-curl/docs/cmdline-opts/_FILES.md
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<!-- Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al. -->
|
| 2 |
+
<!-- SPDX-License-Identifier: curl -->
|
| 3 |
+
# FILES
|
| 4 |
+
*~/.curlrc*
|
| 5 |
+
|
| 6 |
+
Default config file, see --config for details.
|
local-test-curl-full-01/afc-curl/docs/cmdline-opts/_GLOBBING.md
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<!-- Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al. -->
|
| 2 |
+
<!-- SPDX-License-Identifier: curl -->
|
| 3 |
+
# GLOBBING
|
| 4 |
+
You can specify multiple URLs or parts of URLs by writing lists within braces
|
| 5 |
+
or ranges within brackets. We call this "globbing".
|
| 6 |
+
|
| 7 |
+
Provide a list with three different names like this:
|
| 8 |
+
|
| 9 |
+
"http://site.{one,two,three}.com"
|
| 10 |
+
|
| 11 |
+
Do sequences of alphanumeric series by using [] as in:
|
| 12 |
+
|
| 13 |
+
"ftp://ftp.example.com/file[1-100].txt"
|
| 14 |
+
|
| 15 |
+
With leading zeroes:
|
| 16 |
+
|
| 17 |
+
"ftp://ftp.example.com/file[001-100].txt"
|
| 18 |
+
|
| 19 |
+
With letters through the alphabet:
|
| 20 |
+
|
| 21 |
+
"ftp://ftp.example.com/file[a-z].txt"
|
| 22 |
+
|
| 23 |
+
Nested sequences are not supported, but you can use several ones next to each
|
| 24 |
+
other:
|
| 25 |
+
|
| 26 |
+
"http://example.com/archive[1996-1999]/vol[1-4]/part{a,b,c}.html"
|
| 27 |
+
|
| 28 |
+
You can specify a step counter for the ranges to get every Nth number or
|
| 29 |
+
letter:
|
| 30 |
+
|
| 31 |
+
"http://example.com/file[1-100:10].txt"
|
| 32 |
+
|
| 33 |
+
"http://example.com/file[a-z:2].txt"
|
| 34 |
+
|
| 35 |
+
When using [] or {} sequences when invoked from a command line prompt, you
|
| 36 |
+
probably have to put the full URL within double quotes to avoid the shell from
|
| 37 |
+
interfering with it. This also goes for other characters treated special, like
|
| 38 |
+
for example '&', '?' and '*'.
|
| 39 |
+
|
| 40 |
+
Switch off globbing with --globoff.
|
local-test-curl-full-01/afc-curl/docs/cmdline-opts/_NAME.md
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<!-- Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al. -->
|
| 2 |
+
<!-- SPDX-License-Identifier: curl -->
|
| 3 |
+
# NAME
|
| 4 |
+
curl - transfer a URL
|
local-test-curl-full-01/afc-curl/docs/cmdline-opts/_OPTIONS.md
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<!-- Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al. -->
|
| 2 |
+
<!-- SPDX-License-Identifier: curl -->
|
| 3 |
+
# OPTIONS
|
| 4 |
+
|
| 5 |
+
Options start with one or two dashes. Many of the options require an
|
| 6 |
+
additional value next to them. If provided text does not start with a dash, it
|
| 7 |
+
is presumed to be and treated as a URL.
|
| 8 |
+
|
| 9 |
+
The short "single-dash" form of the options, -d for example, may be used with
|
| 10 |
+
or without a space between it and its value, although a space is a recommended
|
| 11 |
+
separator. The long double-dash form, --data for example, requires a space
|
| 12 |
+
between it and its value.
|
| 13 |
+
|
| 14 |
+
Short version options that do not need any additional values can be used
|
| 15 |
+
immediately next to each other, like for example you can specify all the
|
| 16 |
+
options *-O*, *-L* and *-v* at once as *-OLv*.
|
| 17 |
+
|
| 18 |
+
In general, all boolean options are enabled with --**option** and yet again
|
| 19 |
+
disabled with --**no-**option. That is, you use the same option name but
|
| 20 |
+
prefix it with `no-`. However, in this list we mostly only list and show the
|
| 21 |
+
--**option** version of them.
|
| 22 |
+
|
| 23 |
+
When --next is used, it resets the parser state and you start again with a
|
| 24 |
+
clean option state, except for the options that are global. Global options
|
| 25 |
+
retain their values and meaning even after --next.
|
| 26 |
+
|
| 27 |
+
The following options are global: `%GLOBALS`.
|
| 28 |
+
|
| 29 |
+
# ALL OPTIONS
|
local-test-curl-full-01/afc-curl/docs/cmdline-opts/_PROTOCOLS.md
ADDED
|
@@ -0,0 +1,53 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<!-- Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al. -->
|
| 2 |
+
<!-- SPDX-License-Identifier: curl -->
|
| 3 |
+
# PROTOCOLS
|
| 4 |
+
curl supports numerous protocols, or put in URL terms: schemes. Your
|
| 5 |
+
particular build may not support them all.
|
| 6 |
+
## DICT
|
| 7 |
+
Lets you lookup words using online dictionaries.
|
| 8 |
+
## FILE
|
| 9 |
+
Read or write local files. curl does not support accessing file:// URL
|
| 10 |
+
remotely, but when running on Microsoft Windows using the native UNC approach
|
| 11 |
+
works.
|
| 12 |
+
## FTP(S)
|
| 13 |
+
curl supports the File Transfer Protocol with a lot of tweaks and levers. With
|
| 14 |
+
or without using TLS.
|
| 15 |
+
## GOPHER(S)
|
| 16 |
+
Retrieve files.
|
| 17 |
+
## HTTP(S)
|
| 18 |
+
curl supports HTTP with numerous options and variations. It can speak HTTP
|
| 19 |
+
version 0.9, 1.0, 1.1, 2 and 3 depending on build options and the correct
|
| 20 |
+
command line options.
|
| 21 |
+
## IMAP(S)
|
| 22 |
+
Using the mail reading protocol, curl can download emails for you. With or
|
| 23 |
+
without using TLS.
|
| 24 |
+
## LDAP(S)
|
| 25 |
+
curl can do directory lookups for you, with or without TLS.
|
| 26 |
+
## MQTT
|
| 27 |
+
curl supports MQTT version 3. Downloading over MQTT equals subscribe to a
|
| 28 |
+
topic while uploading/posting equals publish on a topic. MQTT over TLS is not
|
| 29 |
+
supported (yet).
|
| 30 |
+
## POP3(S)
|
| 31 |
+
Downloading from a pop3 server means getting a mail. With or without using
|
| 32 |
+
TLS.
|
| 33 |
+
## RTMP(S)
|
| 34 |
+
The **Realtime Messaging Protocol** is primarily used to serve streaming media
|
| 35 |
+
and curl can download it.
|
| 36 |
+
## RTSP
|
| 37 |
+
curl supports RTSP 1.0 downloads.
|
| 38 |
+
## SCP
|
| 39 |
+
curl supports SSH version 2 scp transfers.
|
| 40 |
+
## SFTP
|
| 41 |
+
curl supports SFTP (draft 5) done over SSH version 2.
|
| 42 |
+
## SMB(S)
|
| 43 |
+
curl supports SMB version 1 for upload and download.
|
| 44 |
+
## SMTP(S)
|
| 45 |
+
Uploading contents to an SMTP server means sending an email. With or without
|
| 46 |
+
TLS.
|
| 47 |
+
## TELNET
|
| 48 |
+
Fetching a telnet URL starts an interactive session where it sends what it
|
| 49 |
+
reads on stdin and outputs what the server sends it.
|
| 50 |
+
## TFTP
|
| 51 |
+
curl can do TFTP downloads and uploads.
|
| 52 |
+
## WS(S)
|
| 53 |
+
WebSocket done over HTTP/1. WSS implies that it works over HTTPS.
|
local-test-curl-full-01/afc-curl/docs/cmdline-opts/_PROXYPREFIX.md
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<!-- Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al. -->
|
| 2 |
+
<!-- SPDX-License-Identifier: curl -->
|
| 3 |
+
# PROXY PROTOCOL PREFIXES
|
| 4 |
+
The proxy string may be specified with a protocol:// prefix to specify
|
| 5 |
+
alternative proxy protocols. (Added in 7.21.7)
|
| 6 |
+
|
| 7 |
+
If no protocol is specified in the proxy string or if the string does not
|
| 8 |
+
match a supported one, the proxy is treated as an HTTP proxy.
|
| 9 |
+
|
| 10 |
+
The supported proxy protocol prefixes are as follows:
|
| 11 |
+
## http://
|
| 12 |
+
Makes it use it as an HTTP proxy. The default if no scheme prefix is used.
|
| 13 |
+
## https://
|
| 14 |
+
Makes it treated as an **HTTPS** proxy.
|
| 15 |
+
## socks4://
|
| 16 |
+
Makes it the equivalent of --socks4
|
| 17 |
+
## socks4a://
|
| 18 |
+
Makes it the equivalent of --socks4a
|
| 19 |
+
## socks5://
|
| 20 |
+
Makes it the equivalent of --socks5
|
| 21 |
+
## socks5h://
|
| 22 |
+
Makes it the equivalent of --socks5-hostname
|
local-test-curl-full-01/afc-curl/docs/cmdline-opts/_SEEALSO.md
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<!-- Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al. -->
|
| 2 |
+
<!-- SPDX-License-Identifier: curl -->
|
| 3 |
+
# SEE ALSO
|
| 4 |
+
|
| 5 |
+
**ftp (1)**, **wget (1)**
|
local-test-curl-full-01/afc-curl/docs/cmdline-opts/_VARIABLES.md
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<!-- Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al. -->
|
| 2 |
+
<!-- SPDX-License-Identifier: curl -->
|
| 3 |
+
# VARIABLES
|
| 4 |
+
curl supports command line variables (added in 8.3.0). Set variables with
|
| 5 |
+
--variable name=content or --variable name@file (where `file` can be stdin if
|
| 6 |
+
set to a single dash (-)).
|
| 7 |
+
|
| 8 |
+
Variable contents can be expanded in option parameters using `{{name}}` if the
|
| 9 |
+
option name is prefixed with `--expand-`. This gets the contents of the
|
| 10 |
+
variable `name` inserted, or a blank if the name does not exist as a
|
| 11 |
+
variable. Insert `{{` verbatim in the string by prefixing it with a backslash,
|
| 12 |
+
like `\{{`.
|
| 13 |
+
|
| 14 |
+
You access and expand environment variables by first importing them. You
|
| 15 |
+
select to either require the environment variable to be set or you can provide
|
| 16 |
+
a default value in case it is not already set. Plain `--variable %name`
|
| 17 |
+
imports the variable called `name` but exits with an error if that environment
|
| 18 |
+
variable is not already set. To provide a default value if it is not set, use
|
| 19 |
+
`--variable %name=content` or `--variable %name@content`.
|
| 20 |
+
|
| 21 |
+
Example. Get the USER environment variable into the URL, fail if USER is not
|
| 22 |
+
set:
|
| 23 |
+
|
| 24 |
+
--variable '%USER'
|
| 25 |
+
--expand-url = "https://example.com/api/{{USER}}/method"
|
| 26 |
+
|
| 27 |
+
When expanding variables, curl supports a set of functions that can make the
|
| 28 |
+
variable contents more convenient to use. It can trim leading and trailing
|
| 29 |
+
white space with `trim`, it can output the contents as a JSON quoted string
|
| 30 |
+
with `json`, URL encode the string with `url` or base64 encode it with `b64`.
|
| 31 |
+
To apply functions to a variable expansion, add them colon separated to the
|
| 32 |
+
right side of the variable. Variable content holding null bytes that are not
|
| 33 |
+
encoded when expanded cause error.
|
| 34 |
+
|
| 35 |
+
Example: get the contents of a file called $HOME/.secret into a variable
|
| 36 |
+
called "fix". Make sure that the content is trimmed and percent-encoded when
|
| 37 |
+
sent as POST data:
|
| 38 |
+
|
| 39 |
+
--variable %HOME
|
| 40 |
+
--expand-variable fix@{{HOME}}/.secret
|
| 41 |
+
--expand-data "{{fix:trim:url}}"
|
| 42 |
+
https://example.com/
|
| 43 |
+
|
| 44 |
+
Command line variables and expansions were added in 8.3.0.
|
local-test-curl-full-01/afc-curl/docs/cmdline-opts/_VERSION.md
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<!-- Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al. -->
|
| 2 |
+
<!-- SPDX-License-Identifier: curl -->
|
| 3 |
+
# VERSION
|
| 4 |
+
|
| 5 |
+
This man page describes curl `%VERSION`. If you use a later version, chances
|
| 6 |
+
are this man page does not fully document it. If you use an earlier version,
|
| 7 |
+
this document tries to include version information about which specific
|
| 8 |
+
version that introduced changes.
|
| 9 |
+
|
| 10 |
+
You can always learn which the latest curl version is by running
|
| 11 |
+
|
| 12 |
+
curl https://curl.se/info
|
| 13 |
+
|
| 14 |
+
The online version of this man page is always showing the latest incarnation:
|
| 15 |
+
https://curl.se/docs/manpage.html
|
local-test-curl-full-01/afc-curl/docs/cmdline-opts/abstract-unix-socket.md
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
c: Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al.
|
| 3 |
+
SPDX-License-Identifier: curl
|
| 4 |
+
Long: abstract-unix-socket
|
| 5 |
+
Arg: <path>
|
| 6 |
+
Help: Connect via abstract Unix domain socket
|
| 7 |
+
Added: 7.53.0
|
| 8 |
+
Protocols: HTTP
|
| 9 |
+
Category: connection
|
| 10 |
+
Multi: single
|
| 11 |
+
See-also:
|
| 12 |
+
- unix-socket
|
| 13 |
+
Example:
|
| 14 |
+
- --abstract-unix-socket socketpath $URL
|
| 15 |
+
---
|
| 16 |
+
|
| 17 |
+
# `--abstract-unix-socket`
|
| 18 |
+
|
| 19 |
+
Connect through an abstract Unix domain socket, instead of using the network.
|
| 20 |
+
Note: netstat shows the path of an abstract socket prefixed with `@`, however
|
| 21 |
+
the \<path\> argument should not have this leading character.
|
local-test-curl-full-01/afc-curl/docs/cmdline-opts/alt-svc.md
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
c: Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al.
|
| 3 |
+
SPDX-License-Identifier: curl
|
| 4 |
+
Long: alt-svc
|
| 5 |
+
Arg: <filename>
|
| 6 |
+
Protocols: HTTPS
|
| 7 |
+
Help: Enable alt-svc with this cache file
|
| 8 |
+
Added: 7.64.1
|
| 9 |
+
Category: http
|
| 10 |
+
Multi: append
|
| 11 |
+
See-also:
|
| 12 |
+
- resolve
|
| 13 |
+
- connect-to
|
| 14 |
+
Example:
|
| 15 |
+
- --alt-svc svc.txt $URL
|
| 16 |
+
---
|
| 17 |
+
|
| 18 |
+
# `--alt-svc`
|
| 19 |
+
|
| 20 |
+
Enable the alt-svc parser. If the filename points to an existing alt-svc cache
|
| 21 |
+
file, that gets used. After a completed transfer, the cache is saved to the
|
| 22 |
+
filename again if it has been modified.
|
| 23 |
+
|
| 24 |
+
Specify a "" filename (zero length) to avoid loading/saving and make curl just
|
| 25 |
+
handle the cache in memory.
|
| 26 |
+
|
| 27 |
+
If this option is used several times, curl loads contents from all the
|
| 28 |
+
files but the last one is used for saving.
|
local-test-curl-full-01/afc-curl/docs/cmdline-opts/anyauth.md
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
c: Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al.
|
| 3 |
+
SPDX-License-Identifier: curl
|
| 4 |
+
Long: anyauth
|
| 5 |
+
Help: Pick any authentication method
|
| 6 |
+
Protocols: HTTP
|
| 7 |
+
Category: http proxy auth
|
| 8 |
+
Added: 7.10.6
|
| 9 |
+
Multi: mutex
|
| 10 |
+
See-also:
|
| 11 |
+
- proxy-anyauth
|
| 12 |
+
- basic
|
| 13 |
+
- digest
|
| 14 |
+
Example:
|
| 15 |
+
- --anyauth --user me:pwd $URL
|
| 16 |
+
---
|
| 17 |
+
|
| 18 |
+
# `--anyauth`
|
| 19 |
+
|
| 20 |
+
Figure out authentication method automatically, and use the most secure one
|
| 21 |
+
the remote site claims to support. This is done by first doing a request and
|
| 22 |
+
checking the response-headers, thus possibly inducing an extra network
|
| 23 |
+
round-trip. This option is used instead of setting a specific authentication
|
| 24 |
+
method, which you can do with --basic, --digest, --ntlm, and --negotiate.
|
| 25 |
+
|
| 26 |
+
Using --anyauth is not recommended if you do uploads from stdin, since it may
|
| 27 |
+
require data to be sent twice and then the client must be able to rewind. If
|
| 28 |
+
the need should arise when uploading from stdin, the upload operation fails.
|
| 29 |
+
|
| 30 |
+
Used together with --user.
|
local-test-curl-full-01/afc-curl/docs/cmdline-opts/append.md
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
c: Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al.
|
| 3 |
+
SPDX-License-Identifier: curl
|
| 4 |
+
Short: a
|
| 5 |
+
Long: append
|
| 6 |
+
Help: Append to target file when uploading
|
| 7 |
+
Protocols: FTP SFTP
|
| 8 |
+
Category: ftp sftp
|
| 9 |
+
Added: 4.8
|
| 10 |
+
Multi: boolean
|
| 11 |
+
See-also:
|
| 12 |
+
- range
|
| 13 |
+
- continue-at
|
| 14 |
+
Example:
|
| 15 |
+
- --upload-file local --append ftp://example.com/
|
| 16 |
+
---
|
| 17 |
+
|
| 18 |
+
# `--append`
|
| 19 |
+
|
| 20 |
+
When used in an upload, this option makes curl append to the target file
|
| 21 |
+
instead of overwriting it. If the remote file does not exist, it is
|
| 22 |
+
created. Note that this flag is ignored by some SFTP servers (including
|
| 23 |
+
OpenSSH).
|
local-test-curl-full-01/afc-curl/docs/cmdline-opts/aws-sigv4.md
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
c: Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al.
|
| 3 |
+
SPDX-License-Identifier: curl
|
| 4 |
+
Long: aws-sigv4
|
| 5 |
+
Protocols: HTTP
|
| 6 |
+
Arg: <provider1[:prvdr2[:reg[:srv]]]>
|
| 7 |
+
Help: AWS V4 signature auth
|
| 8 |
+
Category: auth http
|
| 9 |
+
Added: 7.75.0
|
| 10 |
+
Multi: single
|
| 11 |
+
See-also:
|
| 12 |
+
- basic
|
| 13 |
+
- user
|
| 14 |
+
Example:
|
| 15 |
+
- --aws-sigv4 "aws:amz:us-east-2:es" --user "key:secret" $URL
|
| 16 |
+
---
|
| 17 |
+
|
| 18 |
+
# `--aws-sigv4`
|
| 19 |
+
|
| 20 |
+
Use AWS V4 signature authentication in the transfer.
|
| 21 |
+
|
| 22 |
+
The provider argument is a string that is used by the algorithm when creating
|
| 23 |
+
outgoing authentication headers.
|
| 24 |
+
|
| 25 |
+
The region argument is a string that points to a geographic area of
|
| 26 |
+
a resources collection (region-code) when the region name is omitted from
|
| 27 |
+
the endpoint.
|
| 28 |
+
|
| 29 |
+
The service argument is a string that points to a function provided by a cloud
|
| 30 |
+
(service-code) when the service name is omitted from the endpoint.
|
local-test-curl-full-01/afc-curl/docs/cmdline-opts/basic.md
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
c: Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al.
|
| 3 |
+
SPDX-License-Identifier: curl
|
| 4 |
+
Long: basic
|
| 5 |
+
Help: HTTP Basic Authentication
|
| 6 |
+
Protocols: HTTP
|
| 7 |
+
Category: auth
|
| 8 |
+
Added: 7.10.6
|
| 9 |
+
Multi: mutex
|
| 10 |
+
See-also:
|
| 11 |
+
- proxy-basic
|
| 12 |
+
Example:
|
| 13 |
+
- -u name:password --basic $URL
|
| 14 |
+
---
|
| 15 |
+
|
| 16 |
+
# `--basic`
|
| 17 |
+
|
| 18 |
+
Use HTTP Basic authentication with the remote host. This method is the default
|
| 19 |
+
and this option is usually pointless, unless you use it to override a
|
| 20 |
+
previously set option that sets a different authentication method (such as
|
| 21 |
+
--ntlm, --digest, or --negotiate).
|
| 22 |
+
|
| 23 |
+
Used together with --user.
|
local-test-curl-full-01/afc-curl/docs/cmdline-opts/cacert.md
ADDED
|
@@ -0,0 +1,46 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
c: Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al.
|
| 3 |
+
SPDX-License-Identifier: curl
|
| 4 |
+
Long: cacert
|
| 5 |
+
Arg: <file>
|
| 6 |
+
Help: CA certificate to verify peer against
|
| 7 |
+
Protocols: TLS
|
| 8 |
+
Category: tls
|
| 9 |
+
Added: 7.5
|
| 10 |
+
Multi: single
|
| 11 |
+
See-also:
|
| 12 |
+
- capath
|
| 13 |
+
- dump-ca-embed
|
| 14 |
+
- insecure
|
| 15 |
+
Example:
|
| 16 |
+
- --cacert CA-file.txt $URL
|
| 17 |
+
---
|
| 18 |
+
|
| 19 |
+
# `--cacert`
|
| 20 |
+
|
| 21 |
+
Use the specified certificate file to verify the peer. The file may contain
|
| 22 |
+
multiple CA certificates. The certificate(s) must be in PEM format. Normally
|
| 23 |
+
curl is built to use a default file for this, so this option is typically used
|
| 24 |
+
to alter that default file.
|
| 25 |
+
|
| 26 |
+
curl recognizes the environment variable named 'CURL_CA_BUNDLE' if it is set
|
| 27 |
+
and the TLS backend is not Schannel, and uses the given path as a path to a CA
|
| 28 |
+
cert bundle. This option overrides that variable.
|
| 29 |
+
|
| 30 |
+
(Windows) curl automatically looks for a CA certs file named
|
| 31 |
+
'curl-ca-bundle.crt', either in the same directory as curl.exe, or in the
|
| 32 |
+
Current Working Directory, or in any folder along your PATH.
|
| 33 |
+
|
| 34 |
+
curl 8.11.0 added a build-time option to disable this search behavior, and
|
| 35 |
+
another option to restrict search to the application's directory.
|
| 36 |
+
|
| 37 |
+
(iOS and macOS only) If curl is built against Secure Transport, then this
|
| 38 |
+
option is supported for backward compatibility with other SSL engines, but it
|
| 39 |
+
should not be set. If the option is not set, then curl uses the certificates
|
| 40 |
+
in the system and user Keychain to verify the peer, which is the preferred
|
| 41 |
+
method of verifying the peer's certificate chain.
|
| 42 |
+
|
| 43 |
+
(Schannel only) This option is supported for Schannel in Windows 7 or later
|
| 44 |
+
(added in 7.60.0). This option is supported for backward compatibility with
|
| 45 |
+
other SSL engines; instead it is recommended to use Windows' store of root
|
| 46 |
+
certificates (the default for Schannel).
|
local-test-curl-full-01/afc-curl/docs/cmdline-opts/capath.md
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
c: Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al.
|
| 3 |
+
SPDX-License-Identifier: curl
|
| 4 |
+
Long: capath
|
| 5 |
+
Arg: <dir>
|
| 6 |
+
Help: CA directory to verify peer against
|
| 7 |
+
Protocols: TLS
|
| 8 |
+
Category: tls
|
| 9 |
+
Added: 7.9.8
|
| 10 |
+
Multi: single
|
| 11 |
+
See-also:
|
| 12 |
+
- cacert
|
| 13 |
+
- dump-ca-embed
|
| 14 |
+
- insecure
|
| 15 |
+
Example:
|
| 16 |
+
- --capath /local/directory $URL
|
| 17 |
+
---
|
| 18 |
+
|
| 19 |
+
# `--capath`
|
| 20 |
+
|
| 21 |
+
Use the specified certificate directory to verify the peer. Multiple paths can
|
| 22 |
+
be provided by separated with colon (`:`) (e.g. `path1:path2:path3`). The
|
| 23 |
+
certificates must be in PEM format, and if curl is built against OpenSSL, the
|
| 24 |
+
directory must have been processed using the c_rehash utility supplied with
|
| 25 |
+
OpenSSL. Using --capath can allow OpenSSL-powered curl to make SSL-connections
|
| 26 |
+
much more efficiently than using --cacert if the --cacert file contains many
|
| 27 |
+
CA certificates.
|
| 28 |
+
|
| 29 |
+
If this option is set, the default capath value is ignored.
|
local-test-curl-full-01/afc-curl/docs/cmdline-opts/cert-status.md
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
c: Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al.
|
| 3 |
+
SPDX-License-Identifier: curl
|
| 4 |
+
Long: cert-status
|
| 5 |
+
Protocols: TLS
|
| 6 |
+
Added: 7.41.0
|
| 7 |
+
Help: Verify server cert status OCSP-staple
|
| 8 |
+
Category: tls
|
| 9 |
+
Multi: boolean
|
| 10 |
+
See-also:
|
| 11 |
+
- pinnedpubkey
|
| 12 |
+
Example:
|
| 13 |
+
- --cert-status $URL
|
| 14 |
+
---
|
| 15 |
+
|
| 16 |
+
# `--cert-status`
|
| 17 |
+
|
| 18 |
+
Verify the status of the server certificate by using the Certificate Status
|
| 19 |
+
Request (aka. OCSP stapling) TLS extension.
|
| 20 |
+
|
| 21 |
+
If this option is enabled and the server sends an invalid (e.g. expired)
|
| 22 |
+
response, if the response suggests that the server certificate has been
|
| 23 |
+
revoked, or no response at all is received, the verification fails.
|
| 24 |
+
|
| 25 |
+
This support is currently only implemented in the OpenSSL and GnuTLS backends.
|
local-test-curl-full-01/afc-curl/docs/cmdline-opts/cert-type.md
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
c: Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al.
|
| 3 |
+
SPDX-License-Identifier: curl
|
| 4 |
+
Long: cert-type
|
| 5 |
+
Protocols: TLS
|
| 6 |
+
Arg: <type>
|
| 7 |
+
Help: Certificate type (DER/PEM/ENG/P12)
|
| 8 |
+
Category: tls
|
| 9 |
+
Added: 7.9.3
|
| 10 |
+
Multi: single
|
| 11 |
+
See-also:
|
| 12 |
+
- cert
|
| 13 |
+
- key
|
| 14 |
+
- key-type
|
| 15 |
+
Example:
|
| 16 |
+
- --cert-type PEM --cert file $URL
|
| 17 |
+
---
|
| 18 |
+
|
| 19 |
+
# `--cert-type`
|
| 20 |
+
|
| 21 |
+
Set type of the provided client certificate. PEM, DER, ENG and P12 are
|
| 22 |
+
recognized types.
|
| 23 |
+
|
| 24 |
+
The default type depends on the TLS backend and is usually PEM, however for
|
| 25 |
+
Secure Transport and Schannel it is P12. If --cert is a pkcs11: URI then ENG is
|
| 26 |
+
the default type.
|
local-test-curl-full-01/afc-curl/docs/cmdline-opts/ciphers.md
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
c: Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al.
|
| 3 |
+
SPDX-License-Identifier: curl
|
| 4 |
+
Long: ciphers
|
| 5 |
+
Arg: <list>
|
| 6 |
+
Help: TLS 1.2 (1.1, 1.0) ciphers to use
|
| 7 |
+
Protocols: TLS
|
| 8 |
+
Category: tls
|
| 9 |
+
Added: 7.9
|
| 10 |
+
Multi: single
|
| 11 |
+
See-also:
|
| 12 |
+
- tls13-ciphers
|
| 13 |
+
- proxy-ciphers
|
| 14 |
+
- curves
|
| 15 |
+
Example:
|
| 16 |
+
- --ciphers ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256 $URL
|
| 17 |
+
---
|
| 18 |
+
|
| 19 |
+
# `--ciphers`
|
| 20 |
+
|
| 21 |
+
Specifies which cipher suites to use in the connection if it negotiates
|
| 22 |
+
TLS 1.2 (1.1, 1.0). The list of ciphers suites must specify valid ciphers.
|
| 23 |
+
Read up on cipher suite details on this URL:
|
| 24 |
+
|
| 25 |
+
https://curl.se/docs/ssl-ciphers.html
|
local-test-curl-full-01/afc-curl/docs/cmdline-opts/config.md
ADDED
|
@@ -0,0 +1,84 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
c: Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al.
|
| 3 |
+
SPDX-License-Identifier: curl
|
| 4 |
+
Long: config
|
| 5 |
+
Arg: <file>
|
| 6 |
+
Help: Read config from a file
|
| 7 |
+
Short: K
|
| 8 |
+
Category: curl
|
| 9 |
+
Added: 4.10
|
| 10 |
+
Multi: append
|
| 11 |
+
See-also:
|
| 12 |
+
- disable
|
| 13 |
+
Example:
|
| 14 |
+
- --config file.txt $URL
|
| 15 |
+
---
|
| 16 |
+
|
| 17 |
+
# `--config`
|
| 18 |
+
|
| 19 |
+
Specify a text file to read curl arguments from. The command line arguments
|
| 20 |
+
found in the text file are used as if they were provided on the command
|
| 21 |
+
line.
|
| 22 |
+
|
| 23 |
+
Options and their parameters must be specified on the same line in the file,
|
| 24 |
+
separated by whitespace, colon, or the equals sign. Long option names can
|
| 25 |
+
optionally be given in the config file without the initial double dashes and
|
| 26 |
+
if so, the colon or equals characters can be used as separators. If the option
|
| 27 |
+
is specified with one or two dashes, there can be no colon or equals character
|
| 28 |
+
between the option and its parameter.
|
| 29 |
+
|
| 30 |
+
If the parameter contains whitespace or starts with a colon (:) or equals sign
|
| 31 |
+
(=), it must be specified enclosed within double quotes ("like this"). Within
|
| 32 |
+
double quotes the following escape sequences are available: \\, \", \t, \n, \r
|
| 33 |
+
and \v. A backslash preceding any other letter is ignored.
|
| 34 |
+
|
| 35 |
+
If the first non-blank column of a config line is a '#' character, that line
|
| 36 |
+
is treated as a comment.
|
| 37 |
+
|
| 38 |
+
Only write one option per physical line in the config file. A single line is
|
| 39 |
+
required to be no more than 10 megabytes (since 8.2.0).
|
| 40 |
+
|
| 41 |
+
Specify the filename to --config as minus "-" to make curl read the file from
|
| 42 |
+
stdin.
|
| 43 |
+
|
| 44 |
+
Note that to be able to specify a URL in the config file, you need to specify
|
| 45 |
+
it using the --url option, and not by simply writing the URL on its own
|
| 46 |
+
line. So, it could look similar to this:
|
| 47 |
+
|
| 48 |
+
url = "https://curl.se/docs/"
|
| 49 |
+
|
| 50 |
+
# --- Example file ---
|
| 51 |
+
# this is a comment
|
| 52 |
+
url = "example.com"
|
| 53 |
+
output = "curlhere.html"
|
| 54 |
+
user-agent = "superagent/1.0"
|
| 55 |
+
|
| 56 |
+
# and fetch another URL too
|
| 57 |
+
url = "example.com/docs/manpage.html"
|
| 58 |
+
-O
|
| 59 |
+
referer = "http://nowhereatall.example.com/"
|
| 60 |
+
# --- End of example file ---
|
| 61 |
+
|
| 62 |
+
When curl is invoked, it (unless --disable is used) checks for a default
|
| 63 |
+
config file and uses it if found, even when --config is used. The default
|
| 64 |
+
config file is checked for in the following places in this order:
|
| 65 |
+
|
| 66 |
+
1) **"$CURL_HOME/.curlrc"**
|
| 67 |
+
|
| 68 |
+
2) **"$XDG_CONFIG_HOME/curlrc"** (Added in 7.73.0)
|
| 69 |
+
|
| 70 |
+
3) **"$HOME/.curlrc"**
|
| 71 |
+
|
| 72 |
+
4) Windows: **"%USERPROFILE%\.curlrc"**
|
| 73 |
+
|
| 74 |
+
5) Windows: **"%APPDATA%\.curlrc"**
|
| 75 |
+
|
| 76 |
+
6) Windows: **"%USERPROFILE%\Application Data\.curlrc"**
|
| 77 |
+
|
| 78 |
+
7) Non-Windows: use getpwuid to find the home directory
|
| 79 |
+
|
| 80 |
+
8) On Windows, if it finds no *.curlrc* file in the sequence described above, it
|
| 81 |
+
checks for one in the same directory the curl executable is placed.
|
| 82 |
+
|
| 83 |
+
On Windows two filenames are checked per location: *.curlrc* and *_curlrc*,
|
| 84 |
+
preferring the former. Older versions on Windows checked for *_curlrc* only.
|
local-test-curl-full-01/afc-curl/docs/cmdline-opts/connect-to.md
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
c: Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al.
|
| 3 |
+
SPDX-License-Identifier: curl
|
| 4 |
+
Long: connect-to
|
| 5 |
+
Arg: <HOST1:PORT1:HOST2:PORT2>
|
| 6 |
+
Help: Connect to host2 instead of host1
|
| 7 |
+
Added: 7.49.0
|
| 8 |
+
Category: connection dns
|
| 9 |
+
Multi: append
|
| 10 |
+
See-also:
|
| 11 |
+
- resolve
|
| 12 |
+
- header
|
| 13 |
+
Example:
|
| 14 |
+
- --connect-to example.com:443:example.net:8443 $URL
|
| 15 |
+
---
|
| 16 |
+
|
| 17 |
+
# `--connect-to`
|
| 18 |
+
|
| 19 |
+
For a request intended for the `HOST1:PORT1` pair, connect to `HOST2:PORT2`
|
| 20 |
+
instead. This option is only used to establish the network connection. It does
|
| 21 |
+
NOT affect the hostname/port number that is used for TLS/SSL (e.g. SNI,
|
| 22 |
+
certificate verification) or for the application protocols.
|
| 23 |
+
|
| 24 |
+
`HOST1` and `PORT1` may be empty strings, meaning any host or any port number.
|
| 25 |
+
`HOST2` and `PORT2` may also be empty strings, meaning use the request's
|
| 26 |
+
original hostname and port number.
|
| 27 |
+
|
| 28 |
+
A hostname specified to this option is compared as a string, so it needs to
|
| 29 |
+
match the name used in request URL. It can be either numerical such as
|
| 30 |
+
`127.0.0.1` or the full host name such as `example.org`.
|
| 31 |
+
|
| 32 |
+
Example: redirect connects from the example.com hostname to 127.0.0.1
|
| 33 |
+
independently of port number:
|
| 34 |
+
|
| 35 |
+
curl --connect-to example.com::127.0.0.1: https://example.com/
|
| 36 |
+
|
| 37 |
+
Example: redirect connects from all hostnames to 127.0.0.1 independently of
|
| 38 |
+
port number:
|
| 39 |
+
|
| 40 |
+
curl --connect-to ::127.0.0.1: http://example.com/
|
local-test-curl-full-01/afc-curl/docs/cmdline-opts/continue-at.md
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
c: Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al.
|
| 3 |
+
SPDX-License-Identifier: curl
|
| 4 |
+
Short: C
|
| 5 |
+
Long: continue-at
|
| 6 |
+
Arg: <offset>
|
| 7 |
+
Help: Resumed transfer offset
|
| 8 |
+
Category: connection
|
| 9 |
+
Added: 4.8
|
| 10 |
+
Multi: single
|
| 11 |
+
See-also:
|
| 12 |
+
- range
|
| 13 |
+
Example:
|
| 14 |
+
- -C - $URL
|
| 15 |
+
- -C 400 $URL
|
| 16 |
+
---
|
| 17 |
+
|
| 18 |
+
# `--continue-at`
|
| 19 |
+
|
| 20 |
+
Resume a previous transfer from the given byte offset. The given offset is the
|
| 21 |
+
exact number of bytes that are skipped, counting from the beginning of the
|
| 22 |
+
source file before it is transferred to the destination. If used with uploads,
|
| 23 |
+
the FTP server command SIZE is not used by curl.
|
| 24 |
+
|
| 25 |
+
Use "-C -" to instruct curl to automatically find out where/how to resume the
|
| 26 |
+
transfer. It then uses the given output/input files to figure that out.
|
| 27 |
+
|
| 28 |
+
This command line option is mutually exclusive with --range: you can only use
|
| 29 |
+
one of them for a single transfer.
|
| 30 |
+
|
| 31 |
+
The --no-clobber and --remove-on-error options cannot be used together with
|
| 32 |
+
--continue-at.
|
local-test-curl-full-01/afc-curl/docs/cmdline-opts/cookie-jar.md
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
c: Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al.
|
| 3 |
+
SPDX-License-Identifier: curl
|
| 4 |
+
Short: c
|
| 5 |
+
Long: cookie-jar
|
| 6 |
+
Arg: <filename>
|
| 7 |
+
Protocols: HTTP
|
| 8 |
+
Help: Save cookies to <filename> after operation
|
| 9 |
+
Category: http
|
| 10 |
+
Added: 7.9
|
| 11 |
+
Multi: single
|
| 12 |
+
See-also:
|
| 13 |
+
- cookie
|
| 14 |
+
- junk-session-cookies
|
| 15 |
+
Example:
|
| 16 |
+
- -c store-here.txt $URL
|
| 17 |
+
- -c store-here.txt -b read-these $URL
|
| 18 |
+
---
|
| 19 |
+
|
| 20 |
+
# `--cookie-jar`
|
| 21 |
+
|
| 22 |
+
Specify to which file you want curl to write all cookies after a completed
|
| 23 |
+
operation. Curl writes all cookies from its in-memory cookie storage to the
|
| 24 |
+
given file at the end of operations. Even if no cookies are known, a file is
|
| 25 |
+
created so that it removes any formerly existing cookies from the file. The
|
| 26 |
+
file uses the Netscape cookie file format. If you set the filename to a single
|
| 27 |
+
minus, "-", the cookies are written to stdout.
|
| 28 |
+
|
| 29 |
+
The file specified with --cookie-jar is only used for output. No cookies are
|
| 30 |
+
read from the file. To read cookies, use the --cookie option. Both options
|
| 31 |
+
can specify the same file.
|
| 32 |
+
|
| 33 |
+
This command line option activates the cookie engine that makes curl record
|
| 34 |
+
and use cookies. The --cookie option also activates it.
|
| 35 |
+
|
| 36 |
+
If the cookie jar cannot be created or written to, the whole curl operation
|
| 37 |
+
does not fail or even report an error clearly. Using --verbose gets a warning
|
| 38 |
+
displayed, but that is the only visible feedback you get about this possibly
|
| 39 |
+
lethal situation.
|
local-test-curl-full-01/afc-curl/docs/cmdline-opts/create-dirs.md
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
c: Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al.
|
| 3 |
+
SPDX-License-Identifier: curl
|
| 4 |
+
Long: create-dirs
|
| 5 |
+
Help: Create necessary local directory hierarchy
|
| 6 |
+
Category: output
|
| 7 |
+
Added: 7.10.3
|
| 8 |
+
Multi: boolean
|
| 9 |
+
See-also:
|
| 10 |
+
- ftp-create-dirs
|
| 11 |
+
- output-dir
|
| 12 |
+
Example:
|
| 13 |
+
- --create-dirs --output local/dir/file $URL
|
| 14 |
+
---
|
| 15 |
+
|
| 16 |
+
# `--create-dirs`
|
| 17 |
+
|
| 18 |
+
When used in conjunction with the --output option, curl creates the necessary
|
| 19 |
+
local directory hierarchy as needed. This option creates the directories
|
| 20 |
+
mentioned with the --output option combined with the path possibly set with
|
| 21 |
+
--output-dir. If the combined output filename uses no directory, or if the
|
| 22 |
+
directories it mentions already exist, no directories are created.
|
| 23 |
+
|
| 24 |
+
Created directories are made with mode 0750 on Unix-style file systems.
|
| 25 |
+
|
| 26 |
+
To create remote directories when using FTP or SFTP, try --ftp-create-dirs.
|
local-test-curl-full-01/afc-curl/docs/cmdline-opts/create-file-mode.md
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
c: Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al.
|
| 3 |
+
SPDX-License-Identifier: curl
|
| 4 |
+
Long: create-file-mode
|
| 5 |
+
Arg: <mode>
|
| 6 |
+
Help: File mode for created files
|
| 7 |
+
Protocols: SFTP SCP FILE
|
| 8 |
+
Category: sftp scp file upload
|
| 9 |
+
Added: 7.75.0
|
| 10 |
+
Multi: single
|
| 11 |
+
See-also:
|
| 12 |
+
- ftp-create-dirs
|
| 13 |
+
Example:
|
| 14 |
+
- --create-file-mode 0777 -T localfile sftp://example.com/new
|
| 15 |
+
---
|
| 16 |
+
|
| 17 |
+
# `--create-file-mode`
|
| 18 |
+
|
| 19 |
+
When curl is used to create files remotely using one of the supported
|
| 20 |
+
protocols, this option allows the user to set which 'mode' to set on the file
|
| 21 |
+
at creation time, instead of the default 0644.
|
| 22 |
+
|
| 23 |
+
This option takes an octal number as argument.
|
local-test-curl-full-01/afc-curl/docs/cmdline-opts/crlfile.md
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
c: Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al.
|
| 3 |
+
SPDX-License-Identifier: curl
|
| 4 |
+
Long: crlfile
|
| 5 |
+
Arg: <file>
|
| 6 |
+
Protocols: TLS
|
| 7 |
+
Help: Certificate Revocation list
|
| 8 |
+
Added: 7.19.7
|
| 9 |
+
Category: tls
|
| 10 |
+
Multi: single
|
| 11 |
+
See-also:
|
| 12 |
+
- cacert
|
| 13 |
+
- capath
|
| 14 |
+
Example:
|
| 15 |
+
- --crlfile rejects.txt $URL
|
| 16 |
+
---
|
| 17 |
+
|
| 18 |
+
# `--crlfile`
|
| 19 |
+
|
| 20 |
+
Provide a file using PEM format with a Certificate Revocation List that may
|
| 21 |
+
specify peer certificates that are to be considered revoked.
|
local-test-curl-full-01/afc-curl/docs/cmdline-opts/curves.md
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
c: Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al.
|
| 3 |
+
SPDX-License-Identifier: curl
|
| 4 |
+
Long: curves
|
| 5 |
+
Arg: <list>
|
| 6 |
+
Help: (EC) TLS key exchange algorithms to request
|
| 7 |
+
Protocols: TLS
|
| 8 |
+
Added: 7.73.0
|
| 9 |
+
Category: tls
|
| 10 |
+
Multi: single
|
| 11 |
+
See-also:
|
| 12 |
+
- ciphers
|
| 13 |
+
Example:
|
| 14 |
+
- --curves X25519 $URL
|
| 15 |
+
---
|
| 16 |
+
|
| 17 |
+
# `--curves`
|
| 18 |
+
|
| 19 |
+
Set specific curves to use during SSL session establishment according to RFC
|
| 20 |
+
8422, 5.1. Multiple algorithms can be provided by separating them with `:`
|
| 21 |
+
(e.g. `X25519:P-521`). The parameter is available identically in the OpenSSL
|
| 22 |
+
`s_client` and `s_server` utilities.
|
| 23 |
+
|
| 24 |
+
--curves allows a OpenSSL powered curl to make SSL-connections with exactly
|
| 25 |
+
the (EC) curve requested by the client, avoiding nontransparent client/server
|
| 26 |
+
negotiations.
|
| 27 |
+
|
| 28 |
+
If this option is set, the default curves list built into OpenSSL are ignored.
|
local-test-curl-full-01/afc-curl/docs/cmdline-opts/data-binary.md
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
c: Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al.
|
| 3 |
+
SPDX-License-Identifier: curl
|
| 4 |
+
Long: data-binary
|
| 5 |
+
Arg: <data>
|
| 6 |
+
Help: HTTP POST binary data
|
| 7 |
+
Protocols: HTTP
|
| 8 |
+
Category: http post upload
|
| 9 |
+
Added: 7.2
|
| 10 |
+
Multi: append
|
| 11 |
+
See-also:
|
| 12 |
+
- data-ascii
|
| 13 |
+
Example:
|
| 14 |
+
- --data-binary @filename $URL
|
| 15 |
+
---
|
| 16 |
+
|
| 17 |
+
# `--data-binary`
|
| 18 |
+
|
| 19 |
+
Post data exactly as specified with no extra processing whatsoever.
|
| 20 |
+
|
| 21 |
+
If you start the data with the letter @, the rest should be a filename.
|
| 22 |
+
`@-` makes curl read the data from stdin. Data is posted in a similar
|
| 23 |
+
manner as --data does, except that newlines and carriage returns are
|
| 24 |
+
preserved and conversions are never done.
|
| 25 |
+
|
| 26 |
+
Like --data the default content-type sent to the server is
|
| 27 |
+
application/x-www-form-urlencoded. If you want the data to be treated as
|
| 28 |
+
arbitrary binary data by the server then set the content-type to octet-stream:
|
| 29 |
+
-H "Content-Type: application/octet-stream".
|
| 30 |
+
|
| 31 |
+
If this option is used several times, the ones following the first append
|
| 32 |
+
data as described in --data.
|
local-test-curl-full-01/afc-curl/docs/cmdline-opts/data-raw.md
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
c: Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al.
|
| 3 |
+
SPDX-License-Identifier: curl
|
| 4 |
+
Long: data-raw
|
| 5 |
+
Arg: <data>
|
| 6 |
+
Protocols: HTTP
|
| 7 |
+
Help: HTTP POST data, '@' allowed
|
| 8 |
+
Added: 7.43.0
|
| 9 |
+
Category: http post upload
|
| 10 |
+
Multi: append
|
| 11 |
+
See-also:
|
| 12 |
+
- data
|
| 13 |
+
Example:
|
| 14 |
+
- --data-raw "hello" $URL
|
| 15 |
+
- --data-raw "@at@at@" $URL
|
| 16 |
+
---
|
| 17 |
+
|
| 18 |
+
# `--data-raw`
|
| 19 |
+
|
| 20 |
+
Post data similarly to --data but without the special interpretation of the @
|
| 21 |
+
character.
|
local-test-curl-full-01/afc-curl/docs/cmdline-opts/data-urlencode.md
ADDED
|
@@ -0,0 +1,51 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
c: Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al.
|
| 3 |
+
SPDX-License-Identifier: curl
|
| 4 |
+
Long: data-urlencode
|
| 5 |
+
Arg: <data>
|
| 6 |
+
Help: HTTP POST data URL encoded
|
| 7 |
+
Protocols: HTTP
|
| 8 |
+
Added: 7.18.0
|
| 9 |
+
Category: http post upload
|
| 10 |
+
Multi: append
|
| 11 |
+
See-also:
|
| 12 |
+
- data
|
| 13 |
+
- data-raw
|
| 14 |
+
Example:
|
| 15 |
+
- --data-urlencode name=val $URL
|
| 16 |
+
- --data-urlencode =encodethis $URL
|
| 17 |
+
- --data-urlencode name@file $URL
|
| 18 |
+
- --data-urlencode @fileonly $URL
|
| 19 |
+
---
|
| 20 |
+
|
| 21 |
+
# `--data-urlencode`
|
| 22 |
+
|
| 23 |
+
Post data, similar to the other --data options with the exception that this
|
| 24 |
+
performs URL-encoding.
|
| 25 |
+
|
| 26 |
+
To be CGI-compliant, the \<data\> part should begin with a *name* followed by
|
| 27 |
+
a separator and a content specification. The \<data\> part can be passed to
|
| 28 |
+
curl using one of the following syntaxes:
|
| 29 |
+
|
| 30 |
+
## content
|
| 31 |
+
URL-encode the content and pass that on. Just be careful so that the content
|
| 32 |
+
does not contain any `=` or `@` symbols, as that makes the syntax match one of
|
| 33 |
+
the other cases below.
|
| 34 |
+
|
| 35 |
+
## =content
|
| 36 |
+
URL-encode the content and pass that on. The preceding `=` symbol is not
|
| 37 |
+
included in the data.
|
| 38 |
+
|
| 39 |
+
## name=content
|
| 40 |
+
URL-encode the content part and pass that on. Note that the name part is
|
| 41 |
+
expected to be URL-encoded already.
|
| 42 |
+
|
| 43 |
+
## @filename
|
| 44 |
+
load data from the given file (including any newlines), URL-encode that data
|
| 45 |
+
and pass it on in the POST. Using `@-` makes curl read the data from stdin.
|
| 46 |
+
|
| 47 |
+
## name@filename
|
| 48 |
+
load data from the given file (including any newlines), URL-encode that data
|
| 49 |
+
and pass it on in the POST. The name part gets an equal sign appended,
|
| 50 |
+
resulting in *name=urlencoded-file-content*. Note that the name is expected to
|
| 51 |
+
be URL-encoded already.
|
local-test-curl-full-01/afc-curl/docs/cmdline-opts/data.md
ADDED
|
@@ -0,0 +1,49 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
c: Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al.
|
| 3 |
+
SPDX-License-Identifier: curl
|
| 4 |
+
Long: data
|
| 5 |
+
Short: d
|
| 6 |
+
Arg: <data>
|
| 7 |
+
Help: HTTP POST data
|
| 8 |
+
Protocols: HTTP MQTT
|
| 9 |
+
Mutexed: form head upload-file
|
| 10 |
+
Category: important http post upload
|
| 11 |
+
Added: 4.0
|
| 12 |
+
Multi: append
|
| 13 |
+
See-also:
|
| 14 |
+
- data-binary
|
| 15 |
+
- data-urlencode
|
| 16 |
+
- data-raw
|
| 17 |
+
Example:
|
| 18 |
+
- -d "name=curl" $URL
|
| 19 |
+
- -d "name=curl" -d "tool=cmdline" $URL
|
| 20 |
+
- -d @filename $URL
|
| 21 |
+
---
|
| 22 |
+
|
| 23 |
+
# `--data`
|
| 24 |
+
|
| 25 |
+
Sends the specified data in a POST request to the HTTP server, in the same way
|
| 26 |
+
that a browser does when a user has filled in an HTML form and presses the
|
| 27 |
+
submit button. This option makes curl pass the data to the server using the
|
| 28 |
+
content-type application/x-www-form-urlencoded. Compare to --form.
|
| 29 |
+
|
| 30 |
+
--data-raw is almost the same but does not have a special interpretation of
|
| 31 |
+
the @ character. To post data purely binary, you should instead use the
|
| 32 |
+
--data-binary option. To URL-encode the value of a form field you may use
|
| 33 |
+
--data-urlencode.
|
| 34 |
+
|
| 35 |
+
If any of these options is used more than once on the same command line, the
|
| 36 |
+
data pieces specified are merged with a separating &-symbol. Thus, using
|
| 37 |
+
'-d name=daniel -d skill=lousy' would generate a post chunk that looks like
|
| 38 |
+
'name=daniel&skill=lousy'.
|
| 39 |
+
|
| 40 |
+
If you start the data with the letter @, the rest should be a filename to read
|
| 41 |
+
the data from, or - if you want curl to read the data from stdin. Posting data
|
| 42 |
+
from a file named 'foobar' would thus be done with --data @foobar. When --data
|
| 43 |
+
is told to read from a file like that, carriage returns, newlines and null
|
| 44 |
+
bytes are stripped out. If you do not want the @ character to have a special
|
| 45 |
+
interpretation use --data-raw instead.
|
| 46 |
+
|
| 47 |
+
The data for this option is passed on to the server exactly as provided on the
|
| 48 |
+
command line. curl does not convert, change or improve it. It is up to the
|
| 49 |
+
user to provide the data in the correct form.
|
local-test-curl-full-01/afc-curl/docs/cmdline-opts/delegation.md
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
c: Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al.
|
| 3 |
+
SPDX-License-Identifier: curl
|
| 4 |
+
Long: delegation
|
| 5 |
+
Arg: <LEVEL>
|
| 6 |
+
Help: GSS-API delegation permission
|
| 7 |
+
Protocols: GSS/kerberos
|
| 8 |
+
Category: auth
|
| 9 |
+
Added: 7.22.0
|
| 10 |
+
Multi: single
|
| 11 |
+
See-also:
|
| 12 |
+
- insecure
|
| 13 |
+
- ssl
|
| 14 |
+
Example:
|
| 15 |
+
- --delegation "none" $URL
|
| 16 |
+
---
|
| 17 |
+
|
| 18 |
+
# `--delegation`
|
| 19 |
+
|
| 20 |
+
Set LEVEL what curl is allowed to delegate when it comes to user credentials.
|
| 21 |
+
|
| 22 |
+
## none
|
| 23 |
+
Do not allow any delegation.
|
| 24 |
+
|
| 25 |
+
## policy
|
| 26 |
+
Delegates if and only if the OK-AS-DELEGATE flag is set in the Kerberos
|
| 27 |
+
service ticket, which is a matter of realm policy.
|
| 28 |
+
|
| 29 |
+
## always
|
| 30 |
+
Unconditionally allow the server to delegate.
|
local-test-curl-full-01/afc-curl/docs/cmdline-opts/digest.md
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
c: Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al.
|
| 3 |
+
SPDX-License-Identifier: curl
|
| 4 |
+
Long: digest
|
| 5 |
+
Help: HTTP Digest Authentication
|
| 6 |
+
Protocols: HTTP
|
| 7 |
+
Mutexed: basic ntlm negotiate
|
| 8 |
+
Category: proxy auth http
|
| 9 |
+
Added: 7.10.6
|
| 10 |
+
Multi: boolean
|
| 11 |
+
See-also:
|
| 12 |
+
- user
|
| 13 |
+
- proxy-digest
|
| 14 |
+
- anyauth
|
| 15 |
+
Example:
|
| 16 |
+
- -u name:password --digest $URL
|
| 17 |
+
---
|
| 18 |
+
|
| 19 |
+
# `--digest`
|
| 20 |
+
|
| 21 |
+
Enables HTTP Digest authentication. This authentication scheme avoids sending
|
| 22 |
+
the password over the wire in clear text. Use this in combination with the
|
| 23 |
+
normal --user option to set username and password.
|
local-test-curl-full-01/afc-curl/docs/cmdline-opts/disable-eprt.md
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
c: Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al.
|
| 3 |
+
SPDX-License-Identifier: curl
|
| 4 |
+
Long: disable-eprt
|
| 5 |
+
Help: Inhibit using EPRT or LPRT
|
| 6 |
+
Protocols: FTP
|
| 7 |
+
Category: ftp
|
| 8 |
+
Added: 7.10.5
|
| 9 |
+
Multi: boolean
|
| 10 |
+
See-also:
|
| 11 |
+
- disable-epsv
|
| 12 |
+
- ftp-port
|
| 13 |
+
Example:
|
| 14 |
+
- --disable-eprt ftp://example.com/
|
| 15 |
+
---
|
| 16 |
+
|
| 17 |
+
# `--disable-eprt`
|
| 18 |
+
|
| 19 |
+
Disable the use of the EPRT and LPRT commands when doing active FTP transfers.
|
| 20 |
+
Curl normally first attempts to use EPRT before using PORT, but with this
|
| 21 |
+
option, it uses PORT right away. EPRT is an extension to the original FTP
|
| 22 |
+
protocol, and does not work on all servers, but enables more functionality in
|
| 23 |
+
a better way than the traditional PORT command.
|
| 24 |
+
|
| 25 |
+
--eprt can be used to explicitly enable EPRT again and --no-eprt is an alias
|
| 26 |
+
for --disable-eprt.
|
| 27 |
+
|
| 28 |
+
If the server is accessed using IPv6, this option has no effect as EPRT is
|
| 29 |
+
necessary then.
|
| 30 |
+
|
| 31 |
+
Disabling EPRT only changes the active behavior. If you want to switch to
|
| 32 |
+
passive mode you need to not use --ftp-port or force it with --ftp-pasv.
|
local-test-curl-full-01/afc-curl/docs/cmdline-opts/disable.md
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
c: Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al.
|
| 3 |
+
SPDX-License-Identifier: curl
|
| 4 |
+
Long: disable
|
| 5 |
+
Short: q
|
| 6 |
+
Help: Disable .curlrc
|
| 7 |
+
Category: curl
|
| 8 |
+
Added: 5.0
|
| 9 |
+
Multi: boolean
|
| 10 |
+
See-also:
|
| 11 |
+
- config
|
| 12 |
+
Example:
|
| 13 |
+
- -q $URL
|
| 14 |
+
---
|
| 15 |
+
|
| 16 |
+
# `--disable`
|
| 17 |
+
|
| 18 |
+
If used as the **first** parameter on the command line, the *curlrc* config
|
| 19 |
+
file is not read or used. See the --config for details on the default config
|
| 20 |
+
file search path.
|
local-test-curl-full-01/afc-curl/docs/cmdline-opts/disallow-username-in-url.md
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
c: Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al.
|
| 3 |
+
SPDX-License-Identifier: curl
|
| 4 |
+
Long: disallow-username-in-url
|
| 5 |
+
Help: Disallow username in URL
|
| 6 |
+
Added: 7.61.0
|
| 7 |
+
Category: curl
|
| 8 |
+
Multi: boolean
|
| 9 |
+
See-also:
|
| 10 |
+
- proto
|
| 11 |
+
Example:
|
| 12 |
+
- --disallow-username-in-url $URL
|
| 13 |
+
---
|
| 14 |
+
|
| 15 |
+
# `--disallow-username-in-url`
|
| 16 |
+
|
| 17 |
+
Exit with error if passed a URL containing a username. Probably most useful
|
| 18 |
+
when the URL is being provided at runtime or similar.
|
local-test-curl-full-01/afc-curl/docs/cmdline-opts/dns-ipv4-addr.md
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
c: Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al.
|
| 3 |
+
SPDX-License-Identifier: curl
|
| 4 |
+
Long: dns-ipv4-addr
|
| 5 |
+
Arg: <address>
|
| 6 |
+
Help: IPv4 address to use for DNS requests
|
| 7 |
+
Protocols: DNS
|
| 8 |
+
Added: 7.33.0
|
| 9 |
+
Requires: c-ares
|
| 10 |
+
Category: dns
|
| 11 |
+
Multi: single
|
| 12 |
+
See-also:
|
| 13 |
+
- dns-interface
|
| 14 |
+
- dns-ipv6-addr
|
| 15 |
+
Example:
|
| 16 |
+
- --dns-ipv4-addr 10.1.2.3 $URL
|
| 17 |
+
---
|
| 18 |
+
|
| 19 |
+
# `--dns-ipv4-addr`
|
| 20 |
+
|
| 21 |
+
Bind to a specific IP address when making IPv4 DNS requests, so that the DNS
|
| 22 |
+
requests originate from this address. The argument should be a single IPv4
|
| 23 |
+
address.
|
local-test-curl-full-01/afc-curl/docs/cmdline-opts/dns-ipv6-addr.md
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
c: Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al.
|
| 3 |
+
SPDX-License-Identifier: curl
|
| 4 |
+
Long: dns-ipv6-addr
|
| 5 |
+
Arg: <address>
|
| 6 |
+
Help: IPv6 address to use for DNS requests
|
| 7 |
+
Protocols: DNS
|
| 8 |
+
Added: 7.33.0
|
| 9 |
+
Requires: c-ares
|
| 10 |
+
Category: dns
|
| 11 |
+
Multi: single
|
| 12 |
+
See-also:
|
| 13 |
+
- dns-interface
|
| 14 |
+
- dns-ipv4-addr
|
| 15 |
+
Example:
|
| 16 |
+
- --dns-ipv6-addr 2a04:4e42::561 $URL
|
| 17 |
+
---
|
| 18 |
+
|
| 19 |
+
# `--dns-ipv6-addr`
|
| 20 |
+
|
| 21 |
+
Bind to a specific IP address when making IPv6 DNS requests, so that the DNS
|
| 22 |
+
requests originate from this address. The argument should be a single IPv6
|
| 23 |
+
address.
|
local-test-curl-full-01/afc-curl/docs/cmdline-opts/doh-cert-status.md
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
c: Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al.
|
| 3 |
+
SPDX-License-Identifier: curl
|
| 4 |
+
Long: doh-cert-status
|
| 5 |
+
Help: Verify DoH server cert status OCSP-staple
|
| 6 |
+
Added: 7.76.0
|
| 7 |
+
Category: dns tls
|
| 8 |
+
Multi: boolean
|
| 9 |
+
See-also:
|
| 10 |
+
- doh-insecure
|
| 11 |
+
Example:
|
| 12 |
+
- --doh-cert-status --doh-url https://doh.example $URL
|
| 13 |
+
---
|
| 14 |
+
|
| 15 |
+
# `--doh-cert-status`
|
| 16 |
+
|
| 17 |
+
Same as --cert-status but used for DoH (DNS-over-HTTPS).
|
| 18 |
+
|
| 19 |
+
Verifies the status of the DoH servers' certificate by using the Certificate
|
| 20 |
+
Status Request (aka. OCSP stapling) TLS extension.
|
| 21 |
+
|
| 22 |
+
If this option is enabled and the DoH server sends an invalid (e.g. expired)
|
| 23 |
+
response, if the response suggests that the server certificate has been
|
| 24 |
+
revoked, or no response at all is received, the verification fails.
|
| 25 |
+
|
| 26 |
+
This support is currently only implemented in the OpenSSL and GnuTLS backends.
|
local-test-curl-full-01/afc-curl/docs/cmdline-opts/doh-url.md
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
c: Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al.
|
| 3 |
+
SPDX-License-Identifier: curl
|
| 4 |
+
Long: doh-url
|
| 5 |
+
Arg: <URL>
|
| 6 |
+
Help: Resolve hostnames over DoH
|
| 7 |
+
Added: 7.62.0
|
| 8 |
+
Category: dns
|
| 9 |
+
Multi: single
|
| 10 |
+
See-also:
|
| 11 |
+
- doh-insecure
|
| 12 |
+
Example:
|
| 13 |
+
- --doh-url https://doh.example $URL
|
| 14 |
+
- --doh-url https://doh.example --resolve doh.example:443:192.0.2.1 $URL
|
| 15 |
+
---
|
| 16 |
+
|
| 17 |
+
# `--doh-url`
|
| 18 |
+
|
| 19 |
+
Specifies which DNS-over-HTTPS (DoH) server to use to resolve hostnames,
|
| 20 |
+
instead of using the default name resolver mechanism. The URL must be HTTPS.
|
| 21 |
+
|
| 22 |
+
Some SSL options that you set for your transfer also applies to DoH since the
|
| 23 |
+
name lookups take place over SSL. However, the certificate verification
|
| 24 |
+
settings are not inherited but are controlled separately via --doh-insecure
|
| 25 |
+
and --doh-cert-status.
|
| 26 |
+
|
| 27 |
+
By default, DoH is bypassed when initially looking up DNS records of the DoH server. You can specify the IP address(es) of the DoH server with --resolve to avoid this.
|
| 28 |
+
|
| 29 |
+
This option is unset if an empty string "" is used as the URL.
|
| 30 |
+
(Added in 7.85.0)
|
local-test-curl-full-01/afc-curl/docs/cmdline-opts/egd-file.md
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
c: Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al.
|
| 3 |
+
SPDX-License-Identifier: curl
|
| 4 |
+
Long: egd-file
|
| 5 |
+
Arg: <file>
|
| 6 |
+
Help: EGD socket path for random data
|
| 7 |
+
Protocols: TLS
|
| 8 |
+
Category: deprecated
|
| 9 |
+
Added: 7.7
|
| 10 |
+
Multi: single
|
| 11 |
+
See-also:
|
| 12 |
+
- random-file
|
| 13 |
+
Example:
|
| 14 |
+
- --egd-file /random/here $URL
|
| 15 |
+
---
|
| 16 |
+
|
| 17 |
+
# `--egd-file`
|
| 18 |
+
|
| 19 |
+
Deprecated option (added in 7.84.0). Prior to that it only had an effect on
|
| 20 |
+
curl if built to use old versions of OpenSSL.
|
| 21 |
+
|
| 22 |
+
Specify the path name to the Entropy Gathering Daemon socket. The socket is
|
| 23 |
+
used to seed the random engine for SSL connections.
|
local-test-curl-full-01/afc-curl/docs/cmdline-opts/engine.md
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
c: Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al.
|
| 3 |
+
SPDX-License-Identifier: curl
|
| 4 |
+
Long: engine
|
| 5 |
+
Arg: <name>
|
| 6 |
+
Help: Crypto engine to use
|
| 7 |
+
Protocols: TLS
|
| 8 |
+
Category: tls
|
| 9 |
+
Added: 7.9.3
|
| 10 |
+
Multi: single
|
| 11 |
+
See-also:
|
| 12 |
+
- ciphers
|
| 13 |
+
- curves
|
| 14 |
+
Example:
|
| 15 |
+
- --engine flavor $URL
|
| 16 |
+
---
|
| 17 |
+
|
| 18 |
+
# `--engine`
|
| 19 |
+
|
| 20 |
+
Select the OpenSSL crypto engine to use for cipher operations. Use --engine
|
| 21 |
+
list to print a list of build-time supported engines. Note that not all (and
|
| 22 |
+
possibly none) of the engines may be available at runtime.
|
local-test-curl-full-01/afc-curl/docs/cmdline-opts/etag-compare.md
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
c: Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al.
|
| 3 |
+
SPDX-License-Identifier: curl
|
| 4 |
+
Long: etag-compare
|
| 5 |
+
Arg: <file>
|
| 6 |
+
Help: Load ETag from file
|
| 7 |
+
Protocols: HTTP
|
| 8 |
+
Added: 7.68.0
|
| 9 |
+
Category: http
|
| 10 |
+
Multi: single
|
| 11 |
+
See-also:
|
| 12 |
+
- etag-save
|
| 13 |
+
- time-cond
|
| 14 |
+
Example:
|
| 15 |
+
- --etag-compare etag.txt $URL
|
| 16 |
+
---
|
| 17 |
+
|
| 18 |
+
# `--etag-compare`
|
| 19 |
+
|
| 20 |
+
Make a conditional HTTP request for the specific ETag read from the given file
|
| 21 |
+
by sending a custom If-None-Match header using the stored ETag.
|
| 22 |
+
|
| 23 |
+
For correct results, make sure that the specified file contains only a single
|
| 24 |
+
line with the desired ETag. An empty file is parsed as an empty ETag.
|
| 25 |
+
|
| 26 |
+
Use the option --etag-save to first save the ETag from a response, and then
|
| 27 |
+
use this option to compare against the saved ETag in a subsequent request.
|
local-test-curl-full-01/afc-curl/docs/cmdline-opts/etag-save.md
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
c: Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al.
|
| 3 |
+
SPDX-License-Identifier: curl
|
| 4 |
+
Long: etag-save
|
| 5 |
+
Arg: <file>
|
| 6 |
+
Help: Parse incoming ETag and save to a file
|
| 7 |
+
Protocols: HTTP
|
| 8 |
+
Added: 7.68.0
|
| 9 |
+
Category: http
|
| 10 |
+
Multi: single
|
| 11 |
+
See-also:
|
| 12 |
+
- etag-compare
|
| 13 |
+
Example:
|
| 14 |
+
- --etag-save storetag.txt $URL
|
| 15 |
+
---
|
| 16 |
+
|
| 17 |
+
# `--etag-save`
|
| 18 |
+
|
| 19 |
+
Save an HTTP ETag to the specified file. An ETag is a caching related header,
|
| 20 |
+
usually returned in a response.
|
| 21 |
+
|
| 22 |
+
If no ETag is sent by the server, an empty file is created.
|
local-test-curl-full-01/afc-curl/docs/cmdline-opts/fail-early.md
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
c: Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al.
|
| 3 |
+
SPDX-License-Identifier: curl
|
| 4 |
+
Long: fail-early
|
| 5 |
+
Help: Fail on first transfer error
|
| 6 |
+
Added: 7.52.0
|
| 7 |
+
Category: curl global
|
| 8 |
+
Multi: boolean
|
| 9 |
+
Scope: global
|
| 10 |
+
See-also:
|
| 11 |
+
- fail
|
| 12 |
+
- fail-with-body
|
| 13 |
+
Example:
|
| 14 |
+
- --fail-early $URL https://two.example
|
| 15 |
+
---
|
| 16 |
+
|
| 17 |
+
# `--fail-early`
|
| 18 |
+
|
| 19 |
+
Fail and exit on the first detected transfer error.
|
| 20 |
+
|
| 21 |
+
When curl is used to do multiple transfers on the command line, it attempts to
|
| 22 |
+
operate on each given URL, one by one. By default, it ignores errors if there
|
| 23 |
+
are more URLs given and the last URL's success determines the error code curl
|
| 24 |
+
returns. Early failures are "hidden" by subsequent successful transfers.
|
| 25 |
+
|
| 26 |
+
Using this option, curl instead returns an error on the first transfer that
|
| 27 |
+
fails, independent of the amount of URLs that are given on the command
|
| 28 |
+
line. This way, no transfer failures go undetected by scripts and similar.
|
| 29 |
+
|
| 30 |
+
This option does not imply --fail, which causes transfers to fail due to the
|
| 31 |
+
server's HTTP status code. You can combine the two options, however note --fail
|
| 32 |
+
is not global and is therefore contained by --next.
|