summaryrefslogtreecommitdiff
path: root/docs/cmdline-opts
Commit message (Collapse)AuthorAgeFilesLines
* curl.1: clarify that options and URLs can be mixedDaniel Stenberg2018-04-231-4/+4
| | | | | Fixes #2515 Closes #2517
* CURLOPT_SSLCERT.3: improve WinSSL-specific usage infoArchangel_SDY2018-04-231-0/+11
| | | | | | Ref: https://github.com/curl/curl/pull/2376#issuecomment-381858780 Closes https://github.com/curl/curl/pull/2504
* tool_help: clarify --max-time unit of time is secondsJay Satiro2018-04-211-1/+1
| | | | | | | | Before: -m, --max-time <time> Maximum time allowed for the transfer After: -m, --max-time <seconds> Maximum time allowed for the transfer
* schannel: add support for CURLOPT_CAINFODan McNulty2018-04-181-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Move verify_certificate functionality in schannel.c into a new file called schannel_verify.c. Additionally, some structure defintions from schannel.c have been moved to schannel.h to allow them to be used in schannel_verify.c. - Make verify_certificate functionality for Schannel available on all versions of Windows instead of just Windows CE. verify_certificate will be invoked on Windows CE or when the user specifies CURLOPT_CAINFO and CURLOPT_SSL_VERIFYPEER. - In verify_certificate, create a custom certificate chain engine that exclusively trusts the certificate store backed by the CURLOPT_CAINFO file. - doc updates of --cacert/CAINFO support for schannel - Use CERT_NAME_SEARCH_ALL_NAMES_FLAG when invoking CertGetNameString when available. This implements a TODO in schannel.c to improve handling of multiple SANs in a certificate. In particular, all SANs will now be searched instead of just the first name. - Update tool_operate.c to not search for the curl-ca-bundle.crt file when using Schannel to maintain backward compatibility. Previously, any curl-ca-bundle.crt file found in that search would have been ignored by Schannel. But, with CAINFO support, the file found by that search would have been used as the certificate store and could cause issues for any users that have curl-ca-bundle.crt in the search path. - Update url.c to not set the build time CURL_CA_BUNDLE if the selected SSL backend is Schannel. We allow setting CA location for schannel only when explicitly specified by the user via CURLOPT_CAINFO / --cacert. - Add new test cases 3000 and 3001. These test cases check that the first and last SAN, respectively, matches the connection hostname. New test certificates have been added for these cases. For 3000, the certificate prefix is Server-localhost-firstSAN and for 3001, the certificate prefix is Server-localhost-secondSAN. - Remove TODO 15.2 (Add support for custom server certificate validation), this commit addresses it. Closes https://github.com/curl/curl/pull/1325
* docs: fix typosJakub Wilk2018-04-176-10/+10
| | | | Closes https://github.com/curl/curl/pull/2503
* cookie.d: mention that "-" as filename means stdinDaniel Stenberg2018-03-201-1/+2
| | | | | Reported-by: Dongliang Mu Fixes #2410
* CURLOPT_HAPROXYPROTOCOL: support the HAProxy PROXY protocolLawrence Matthews2018-03-171-0/+11
| | | | | | Add --haproxy-protocol for the command line tool Closes #2162
* user-agent.d:: mention --proxy-header as wellDaniel Stenberg2018-03-151-2/+2
| | | | Bug: https://github.com/curl/curl/issues/2381
* curl.1: mention how to add numerical IP addresses in NO_PROXYDaniel Stenberg2018-03-041-3/+6
|
* spelling fixesViktor Szakats2018-02-231-1/+1
| | | | | | | | Detected using the `codespell` tool. Also contains one URL protocol upgrade. Closes https://github.com/curl/curl/pull/2334
* form.d: rephrased somewhat, added two example command linesDaniel Stenberg2018-02-221-16/+26
|
* url: Add option CURLOPT_HAPPY_EYEBALLS_TIMEOUTAnders Bakken2018-02-202-1/+20
| | | | | | | | | | | | | | - Add new option CURLOPT_HAPPY_EYEBALLS_TIMEOUT to set libcurl's happy eyeball timeout value. - Add new optval macro CURL_HET_DEFAULT to represent the default happy eyeballs timeout value (currently 200 ms). - Add new tool option --happy-eyeballs-timeout-ms to expose CURLOPT_HAPPY_EYEBALLS_TIMEOUT. The -ms suffix is used because the other -timeout options in the tool expect seconds not milliseconds. Closes https://github.com/curl/curl/pull/2260
* CURLOPT_RESOLVE: Add support for multiple IP addresses per entryAnders Bakken2018-02-201-1/+3
| | | | | | | This enables users to preresolve but still take advantage of happy eyeballs and trying multiple addresses if some are not connecting. Ref: https://github.com/curl/curl/pull/2260
* tlsauthtype.d: works only if libcurl is built with TLS-SRP supportKamil Dudka2018-02-121-1/+3
| | | | | | Bug: https://bugzilla.redhat.com/1542256 Closes #2306
* progress-bar.d: update to match implementationDaniel Stenberg2018-01-301-2/+3
| | | | | | | | | ... since commit 993dd5651a6 Reported-by: Martin Dreher Bug: https://github.com/curl/curl/pull/2242#issuecomment-361059228 Closes #2271
* curl: add --proxy-pinnedpubkeyDaniel Stenberg2018-01-302-1/+17
| | | | | | | To verify a proxy's public key. For when using HTTPS proxies. Fixes #2192 Closes #2268
* scripts: allow all perl scripts to be run directlyJay Satiro2018-01-071-1/+1
| | | | | | | | - Enable execute permission (chmod +x) - Change interpreter to /usr/bin/env perl Closes https://github.com/curl/curl/pull/2222
* mail-rcpt.d: fix short-text descriptionJay Satiro2018-01-071-1/+1
|
* tool_getparam: Support size modifiers for --max-filesizeGisle Vanem2017-12-262-1/+5
| | | | | | | | | | | | | - Move the size modifier detection code from limit-rate to its own function so that it can also be used with max-filesize. Size modifiers are the suffixes such as G (gigabyte), M (megabyte) etc. For example --max-filesize 1G Ref: https://curl.haxx.se/mail/archive-2017-12/0000.html Closes https://github.com/curl/curl/pull/2179
* curl.1: mention http:// and https:// as valid proxy prefixesDaniel Stenberg2017-12-111-0/+4
|
* curl.1: documented two missing valid exit codesDaniel Stenberg2017-12-111-0/+4
|
* resolve: allow IP address within [] bracketsDaniel Stenberg2017-11-171-0/+2
| | | | | | | | | | | ... so that IPv6 addresses can be passed like they can for connect-to and how they're used in URLs. Added test 1324 to verify Reported-by: Alex Malinovich Fixes #2087 Closes #2091
* --interface: add support for Linux VRFLuca Boccassi2017-11-091-0/+4
| | | | | | | | | | | | | The --interface command (CURLOPT_INTERFACE option) already uses SO_BINDTODEVICE on Linux, but it tries to parse it as an interface or IP address first, which fails in case the user passes a VRF. Try to use the socket option immediately and parse it as a fallback instead. Update the documentation to mention this feature, and that it requires the binary to be ran by root or with CAP_NET_RAW capabilities for this to work. Closes #2024
* cli tool: in -F option arg, comma is a delimiter for files onlyPatrick Monnerat2017-10-291-0/+5
| | | | | | | | Also upgrade test 1133 to cover this case and clarify man page about form data quoting. Bug: https://github.com/curl/curl/issues/2022 Reported-By: omau on github
* cli tool: reimplement stdin buffering in -F option.Patrick Monnerat2017-10-121-3/+6
| | | | | | | | | | | | If stdin is not a regular file, its content is memory-buffered to enable a possible data "rewind". In all cases, stdin data size is determined before real use to avoid having an unknown part's size. --libcurl generated code is left as an unbuffered stdin fread/fseek callback part with unknown data size. Buffering is not supported in deprecated curl_formadd() API.
* docs: clarify form/mime usage of non-regular data files.Patrick Monnerat2017-10-081-3/+3
|
* darwinssl: add support for TLSv1.3Nick Zitzmann2017-10-051-1/+2
| | | | Closes https://github.com/curl/curl/pull/1794
* mime: implement encoders.Patrick Monnerat2017-09-051-0/+14
| | | | | | | | curl_mime_encoder() is operational and documented. curl tool -F option is extended with ";encoder=". curl tool --libcurl option generates calls to curl_mime_encoder(). New encoder tests 648 & 649. Test 1404 extended with an encoder specification.
* mime: use in curl cli tool instead of form API.Patrick Monnerat2017-09-022-9/+61
| | | | | | Extended -F option syntax to support multipart mail messages. -F keyword headers= added to include custom headers in parts. Documentation upgraded.
* request-target.d: mention added in 7.55.0Daniel Stenberg2017-08-221-0/+1
|
* compressed-ssh.d: "Added: 7.56.0"Daniel Stenberg2017-08-171-0/+1
|
* ssh: add the ability to enable compression (for SCP/SFTP)Viktor Szakats2017-08-172-1/+8
| | | | | | | | | | | | | | | | | | The required low-level logic was already available as part of `libssh2` (via `LIBSSH2_FLAG_COMPRESS` `libssh2_session_flag()`[1] option.) This patch adds the new `libcurl` option `CURLOPT_SSH_COMPRESSION` (boolean) and the new `curl` command-line option `--compressed-ssh` to request this `libssh2` feature. To have compression enabled, it is required that the SSH server supports a (zlib) compatible compression method and that `libssh2` was built with `zlib` support enabled. [1] https://www.libssh2.org/libssh2_session_flag.html Ref: https://github.com/curl/curl/issues/1732 Closes https://github.com/curl/curl/pull/1735
* zsh.pl: produce a working completion script againKamil Dudka2017-08-151-1/+1
| | | | | | | | | | | Commit curl-7_54_0-118-g8b2f22e changed the output format of curl --help to use <file> and <dir> instead of FILE and DIR, which caused zsh.pl to produce a broken completion script: % curl --<TAB> _curl:10: no such file or directory: seconds Closes #1779
* connect-to.d: better languageDaniel Stenberg2017-08-121-2/+2
|
* connect-to.d: clarifiedDaniel Stenberg2017-08-121-9/+12
|
* include.d: clarify --include is only for response headersJay Satiro2017-07-301-1/+1
| | | | | | | Follow-up to 171f8de and de6de94. Bug: https://github.com/curl/curl/commit/de6de94#commitcomment-23370851 Reported-by: Daniel Stenberg
* include.d: clarify that it concerns the response headersDaniel Stenberg2017-07-281-2/+5
| | | | | Reported-by: olesteban at github Fixes #1704
* curl --socks5-{basic,gssapi}: control socks5 authKamil Dudka2017-06-283-0/+16
| | | | Closes https://github.com/curl/curl/pull/1454
* --request-target: instead of --strip-path-slashDaniel Stenberg2017-06-213-8/+9
| | | | | | | | | | | | | | ... and CURLOPT_REQUEST_TARGET instead of CURLOPT_STRIP_PATH_SLASH. This option instead provides the full "alternative" target to use in the request, instead of extracting the path from the URL. Test 1298 and 1299 updated accordingly. Idea-by: Evert Pot Suggestion: https://daniel.haxx.se/blog/2017/06/19/options-with-curl/comment-page-1/#comment-18373 Closes #1593
* http: add --strip-path-slash and CURLOPT_STRIP_PATH_SLASHDaniel Stenberg2017-06-192-1/+8
| | | | | | | | | | | ... to enable sending "OPTIONS *" which wasn't possible previously. This option currently only works for HTTP. Added test cases 1298 + 1299 to verify Fixes #1280 Closes #1462
* curl: allow --header and --proxy-header read from fileDaniel Stenberg2017-06-152-5/+12
| | | | | | | | So many headers can be provided as @filename. Suggested-by: Timothe Litt Closes #1486
* redirect: store the "would redirect to" URL when max redirs is reachedDaniel Stenberg2017-05-231-3/+3
| | | | | | | | | Test 1261 added to verify. Reported-by: Lloyd Fournier Fixes #1489 Closes #1497
* cmdline-opts/write-out.d: s/-L/--locationDaniel Stenberg2017-05-181-2/+3
| | | | | Since the man page generator wants the long option name version to generate the proper output.
* oauth2-bearer.d: mention the <token> argumentDaniel Stenberg2017-05-171-0/+1
|
* docs/cmdline-opts/config.d: edit for languageDaniel Stenberg2017-05-161-7/+8
|
* curl: generate the --help outputDaniel Stenberg2017-05-081-2/+4
| | | | | | | | | | ... using the docs/cmdline-opts/gen.pl script, so that we get all the command line option documentation from the same source. The generation of the list has to be done manually and pasted into the source code. Closes #1465
* curl.1: depend the build on the Makefile.inc tooDaniel Stenberg2017-05-081-1/+1
| | | | | ... to also make it update when we remove files, like we did for --environment in commit a8e388dd1095.
* curl: remove tool_writeenv.[ch]Daniel Stenberg2017-05-062-8/+1
| | | | | | | | | ... and USE_ENVIRONMENT and --environment. It was once added for RISC OS support and its platform specific behavior has been annoying ever since. Added in commit c3c8bbd3b2688da8e, mostly unchanged since then. Most probably not actually used for years. Closes #1463
* abstract-unix-socket.d: shorten the help text to fit within 79 colsDaniel Stenberg2017-05-031-1/+1
|
* docs: minor typo in write-out.dRichlv2017-04-041-1/+1
| | | | Closes #1382