summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* fixup call it 'fractional seconds' for --max-time and --connect-timeoutbagder/curl-1-examplesDaniel Stenberg2021-09-013-5/+5
|
* curl.1: provide examples for each optionDaniel Stenberg2021-09-01245-48/+343
| | | | | | | | | The file format for each option now features a "Example:" header that can provide one or more examples that get rendered appropriately in the output. All options MUST have at least one example or gen.pl complains at build-time. This fix also does a few other minor format and consistency cleanups.
* test365: verify response with chunked AND Content-Length headersDaniel Stenberg2021-08-312-1/+66
|
* http: ignore content-length if any transfer-encoding is usedDaniel Stenberg2021-08-3110-71/+80
| | | | | Fixes #7643 Closes #7649
* RELEASE-NOTES: syncedDaniel Stenberg2021-08-311-7/+25
|
* Revert "http2: skip immediate parsing of payload following protocol switch"Daniel Stenberg2021-08-301-9/+2
| | | | | | | | This reverts commit 455a63c66f188598275e87d32de2c4e8e26b80cb. Reported-by: Tk Xiong Fixes #7633 Closes #7648
* KNOWN_BUGS: HTTP/3 doesn't support client certsDaniel Stenberg2021-08-301-0/+7
| | | | Closes #7625
* mailing lists: move from cool.haxx.se to lists.haxx.seDaniel Stenberg2021-08-305-10/+7
|
* http_proxy: only wait for writable socket while sending requestDaniel Stenberg2021-08-271-1/+1
| | | | | | | | | | | | | Otherwise it would wait socket writability even after the entire CONNECT request has sent and make curl basically busy-loop while waiting for a response to come back. The previous fix attempt in #7484 (c27a70a591a4) was inadequate. Reported-by: zloi-user on github Reported-by: Oleguer Llopart Fixes #7589 Closes #7647
* http: disallow >3-digit response codesDaniel Stenberg2021-08-264-30/+41
| | | | | | | | | | Make the built-in HTTP parser behave similar to hyper and reject any HTTP response using more than 3 digits for the response code. Updated test 1432 accordingly. Enabled test 1432 in the hyper builds. Closes #7641
* ngtcp2: stop buffering crypto dataTatsuhiro Tsujikawa2021-08-262-30/+1
| | | | | | | Stop buffering crypto data because libngtcp2 now buffers submitted crypto data. Closes #7637
* test1280: CRLFify the response to please hyperDaniel Stenberg2021-08-261-5/+5
| | | | Closes #7639
* tests: enable test 1129 for hyper buildsDaniel Stenberg2021-08-261-1/+0
| | | | Closes #7638
* curl: better error message when -O fails to get a good nameDaniel Stenberg2021-08-261-1/+4
| | | | | | | | | | Due to how this currently works internally, it needs a working initial file name to store contents in, so it may still fail even with -J is used (and thus accepting a name from content-disposition:) if the file name part of the URL isn't "good enough". Fixes #7628 Closes #7635
* curl_easy_setopt: tweak the string copy wordingDaniel Stenberg2021-08-261-5/+5
| | | | | | Reported-by: Yaobin Wen Fixes #7632 Closes #7634
* RELEASE-NOTES: syncedDaniel Stenberg2021-08-252-11/+51
|
* cmake: sync CURL_DISABLE optionsDon2021-08-253-69/+117
| | | | | | | | | | | | Adds the full listing of CURL_DISABLE options to the CMake build. Moves all option code, except for CURL_DISABLE_OPENSSL_AUTO_LOA_CONFIG which resides near OpenSSL configuration, to the same block of code. Also sorts the options here and in the cmake config header. Additionally sorted the CURL-DISABLE listing and fixed the CURL_DISABLE_POP3 option. Closes #7624
* KNOWN_BUGS: FTPS upload data loss with TLS 1.3Jay Satiro2021-08-251-0/+18
| | | | | | | Bug: https://github.com/curl/curl/issues/6149 Reported-by: Bylon2@users.noreply.github.com Closes https://github.com/curl/curl/pull/7623
* cmake: avoid poll() on macOSDaniel Stenberg2021-08-241-0/+4
| | | | | | | | | ... like we do in configure builds. Since poll() on macOS is not reliable enough. Reported-by: marc-groundctl Fixes #7595 Closes #7619
* c-hyper: handle HTTP/1.1 => HTTP/1.0 downgrade on reused connectionDaniel Stenberg2021-08-234-7/+11
| | | | | | Enable test 1074 Closes #7617
* c-hyper: deal with Expect: 100-continue combined with POSTFIELDSDaniel Stenberg2021-08-232-5/+11
| | | | | | Enable test 1130 and 1131 Closes #7616
* tests: be explicit about using 'python3' instead of 'python'a13460542021-08-234-4/+4
| | | | | | | This fixes running tests in virtualenvs (or on distros) that no longer have a symlink from python to python2 or python3. Closes #7602
* scripts: invoke interpreters through /usr/bin/enva13460542021-08-236-6/+6
| | | | Closes #7602
* DISABLED: enable 11 more tests for hyper buildsDaniel Stenberg2021-08-231-11/+0
| | | | Closes #7612
* setopt: enable CURLOPT_IGNORE_CONTENT_LENGTH for hyperDaniel Stenberg2021-08-234-7/+2
| | | | | | | | | | | Since this option is also used for FTP, it needs to work to set for applications even if hyper doesn't support it for HTTP. Verified by test 1137. Updated docs to specify that the option doesn't work for HTTP when using the hyper backend. Closes #7614
* test1138: remove trailing space to make work with hyperDaniel Stenberg2021-08-232-3/+2
| | | | Closes #7613
* libcurl-errors.3: clarify two CURLUcode errorsDaniel Stenberg2021-08-231-2/+2
| | | | | | | | | | CURLUE_BAD_HANDLE and CURLUE_BAD_PARTPOINTER should be for "bad" or wrong pointers in a generic sense, not just for NULL pointers. Reviewed-by: Jay Satiro Ref: #7605 Closes #7611
* symbols-in-versions: fix CURLSSLBACKEND_QSOSSL last used versionJay Satiro2021-08-231-2/+2
| | | | | | | ... and also change the 'Removed' column name to 'Last' since that column is for the last version to contain the symbol. Closes https://github.com/curl/curl/pull/7609
* urlapi.c:seturl: assert URL instead of using if-checkDaniel Stenberg2021-08-231-2/+1
| | | | | | | There's no code flow possible where this can happen. The assert makes sure it also won't be introduced undetected in the future. Closes #7610
* curl-openssl.m4: show correct output for OpenSSL v3Daniel Stenberg2021-08-221-3/+27
| | | | | | | | | | | | | | | Using 3.0.0 versions configure should now show this: checking for OpenSSL headers version... 3.0.0 - 0x300 checking for OpenSSL library version... 3.0.0 checking for OpenSSL headers and library versions matching... yes This output doesn't actually change what configure generates but is only "cosmetic". Reported-by: Randall S. Becker Fixes #7606 Closes #7608
* mksymbolsmanpage.pl: Fix showing symbol's last used versionJay Satiro2021-08-221-1/+1
| | | | | | | | Prior to this change the symbol's deprecated version was erroneously shown as its last used version. Bug: https://github.com/curl/curl/commit/4e53b94#commitcomment-55239509 Reported-by: i-ky@users.noreply.github.com
* mksymbolsmanpage.pl: match symbols case insenitivelyDaniel Stenberg2021-08-211-2/+2
| | | | | | | | Follow-up to 4e53b9430c750 which made this bug show. Reported-by: i-ky Bug: https://github.com/curl/curl/commit/4e53b9430c7504de8984796e2a2091ec16f27136#commitcomment-55239253 Closes #7607
* asyn-ares: call ares_freeaddrinfo() to clean up addrinfo resultsDaniel Stenberg2021-08-211-0/+1
| | | | | | | | As this leaks memory otherwise Follow-up to ba904db0705c931 Closes #7599
* wolfssl: clean up wolfcrypt error queueEhren Bendler2021-08-211-2/+13
| | | | | | | | | If wolfSSL is built in certain ways (OPENSSL_EXTRA or Debug), the error queue gets added on to for each session and never freed. Fix it by calling ERR_clear_error() like in vtls/openssl when needed. This func is a no-op in wolfcrypt if the error queue is not enabled. Closes #7594
* man pages: remove trailing whitespacesDaniel Stenberg2021-08-2110-10/+16
| | | | | | | | | Extended test 1173 (via the manpage-syntax.pl script) to detect and warn for them. Ref: #7602 Reported-by: a1346054 on github Closes #7604
* mailmap: add Gleb IvanovskyDaniel Stenberg2021-08-212-1/+2
|
* config.d: escape the backslash properlyDaniel Stenberg2021-08-211-1/+1
| | | | Closes #7603
* curl_setup.h: sync values for HTTP_ONLYDon2021-08-212-17/+24
| | | | | | | | The values for HTTP_ONLY differed between CMakeLists.txt and curl_setup.h. Sync them and sort the values in curl_setup.h to make it easier to spot differences. Closes #7601
* configure: set classic mingw minimum OS version to XPJay Satiro2021-08-211-1/+47
| | | | | | | | | | | | | - If the user has not specified a minimum OS version (via WINVER or _WIN32_WINNT macros) then set it to Windows XP. Prior to this change classic MinGW defaulted the minimum OS version to Windows NT 4.0 which is way too old. At least Windows XP is needed for getaddrinfo (which resolves hostnames to IPv6 addresses). Ref: https://github.com/curl/curl/issues/7483#issuecomment-891597034 Closes https://github.com/curl/curl/pull/7581
* schannel: Work around typo in classic mingw macroJay Satiro2021-08-211-7/+7
| | | | | | | | | | | | | | - Define ALG_CLASS_DHASH (the typo from the include) to ALG_CLASS_HASH. Prior to this change there was an incomplete fix to ignore the CALG_TLS1PRF macro on those versions of MinGW where it uses the ALG_CLASS_DHASH typoed macro. Ref: 48cf45c Ref: https://osdn.net/projects/mingw/ticket/38391 Ref: https://github.com/curl/curl/issues/2924 Closes https://github.com/curl/curl/pull/7580
* RELEASE-NOTES: syncedDaniel Stenberg2021-08-201-9/+34
|
* http_proxy: fix user-agent and custom headers for CONNECT with hyperDaniel Stenberg2021-08-202-4/+5
| | | | | | Enable test 287 Closes #7598
* c-hyper: initial support for "dumping" 1xx HTTP responsesDaniel Stenberg2021-08-202-4/+47
| | | | | | | | With the use hyper_request_on_informational() Enable test 155 and 158 Closes #7597
* tests/*server.pl: flush output before executing subprocessMarc Hoersken2021-08-186-3/+18
| | | | | | | | | | | | | | | | | | Also avoid shell processes staying around by using exec. This is necessary to avoid output data being buffering inside the process chain of Perl, Bash/Shell and our test server binaries. On non-Windows systems the exec will also make the subprocess replace the intermediate shell, but on Windows it will at least bind the processes together since there is no real fork or exec available. See: https://cygwin.com/cygwin-ug-net/highlights.html and: https://docs.microsoft.com/cpp/c-runtime-library/exec-wexec-functions Ref: https://github.com/curl/curl/pull/7530#issuecomment-900949010 Reviewed-by: Daniel Stenberg Reviewed-by: Jay Satiro Closes #7530
* CI: use GitHub Container Registry instead of Docker HubMarc Hoersken2021-08-182-14/+14
| | | | | | Avoid limits on Docker Hub and improve image pull/download speed. Closes #7587
* openssl: when creating a new context, there cannot be an old oneDaniel Stenberg2021-08-181-2/+1
| | | | | | | | Remove the previous handling that would call SSL_CTX_free(), and instead add an assert that halts a debug build if there ever is a context already set at this point. Closes #7585
* KNOWN_BUGS: Renegotiate from server may cause hang for OpenSSL backendJay Satiro2021-08-181-0/+12
| | | | Closes https://github.com/curl/curl/issues/6785
* docs/BINDINGS: URL updateViktor Szakats2021-08-171-1/+1
|
* tests/server/*.c: align handling of portfile argument and fileMarc Hoersken2021-08-176-25/+47
| | | | | | | | | | | | 1. Call the internal variable portname (like pidname) everywhere. 2. Have a variable wroteportfile (like wrotepidfile) everywhere. 3. Make sure the file is cleaned up on exit (like pidfile). 4. Add parameter --portfile to usage outputs everywhere. Reviewed-by: Daniel Stenberg Replaces #7523 Closes #7574
* KNOWN_BUGS: Fix a number of typos in KNOWN_BUGSDaniel Gustafsson2021-08-171-5/+5
| | | | Fixes a set of typos found in section 11.3.