| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
| |
... to let curl_easy_escape() itself do the strlen. This avoids a (false
positive) Coverity warning and it avoids us having to store the strlen()
return value in an int variable.
|
|
|
|
|
|
|
|
|
| |
... and update the includes to match how current htmltidy wants them
used.
Reported-by: Stathis Kapnidis
Fixes #7860
Closes #7861
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
- Make content length (ie download size) accessible to the user in the
header callback, but only after all headers have been processed (ie
only in the final call to the header callback).
Background:
For a long time the content length could be retrieved in the header
callback via CURLINFO_CONTENT_LENGTH_DOWNLOAD_T as soon as it was parsed
by curl.
Changes were made in 8a16e54 (precedes 7.79.0) to ignore content length
if any transfer encoding is used. A side effect of that was that
content length was not set by libcurl until after the header callback
was called the final time, because until all headers are processed it
cannot be determined if content length is valid.
This change keeps the same intention --all headers must be processed--
but now the content length is available before the final call to the
header function that indicates all headers have been processed (ie
a blank header).
Bug: https://github.com/curl/curl/commit/8a16e54#r57374914
Reported-by: sergio-nsk@users.noreply.github.com
Co-authored-by: Daniel Stenberg
Fixes https://github.com/curl/curl/issues/7804
Closes https://github.com/curl/curl/pull/7803
|
|
|
|
|
|
|
|
|
| |
User sets the post fields size for binary data. Hence, we should not be
using strlen on it.
Added test 1937 and 1938 to verify.
Closes #7844
|
|
|
|
| |
Closes #7859
|
| |
|
|
|
|
|
|
|
|
|
| |
One reason we know it can fail is if a provider is used that doesn't do
a proper job or is wrongly configured.
Reported-by: Michael Baentsch
Fixes #7840
Closes #7856
|
|
|
|
|
|
| |
depend on it
Closes https://github.com/curl/curl/pull/7822
|
|
|
|
|
|
| |
Reported-by: Jay Satiro
Fixes #7852
Closes #7855
|
|
|
|
|
|
| |
and remove the bad assert again, since it was run even with no error!
Closes #7854
|
|
|
|
|
|
|
|
|
| |
- Free the allocated http request struct on cleanup.
Prior to this change if sws was built with leak sanitizer it would
report a memory leak error during testing.
Closes https://github.com/curl/curl/pull/7849
|
|
|
|
|
|
|
|
| |
Pass on better return codes when errors occur within Curl_http instead
of insisting that CURLE_OUT_OF_MEMORY is the only possible one.
Pointed-out-by: Jay Satiro
Closes #7851
|
|
|
|
|
|
|
|
|
| |
For every 'goto error', make sure the result variable holds the error
code for what went wrong.
Reported-by: Rafał Mikrut
Fixes #7825
Closes #7846
|
|
|
|
|
|
| |
by removing index.html which isn't around anymore
Closes #7853
|
|
|
|
| |
Closes #7802
|
|
|
|
|
|
|
|
| |
It uses revoked.badssl.com which now is expired and therefor this now
permafails. We should not use external sites for tests, this test should
be converted to use our own infra.
Closes #7845
|
|
|
|
|
|
|
|
|
|
|
| |
Report ignore tests separately from the actual fails.
Don't exit non-zero if test servers couldn't get killed.
Assisted-by: Jay Satiro
Fixes #7818
Closes #7841
|
|
|
|
|
|
|
|
|
|
| |
While uploading, check for remote window availability in the getsock
function so that we don't wait for a writable socket if no data can be
sent.
Reported-by: Steini2000 on github
Fixes #7821
Closes #7839
|
|
|
|
| |
Follow-up to 8758a26f8878
|
|
|
|
| |
Closes #7837
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The host name is stored decoded and can be encoded when used to extract
the full URL. By default when extracting the URL, the host name will not
be URL encoded to work as similar as possible as before. When not URL
encoding the host name, the '%' character will however still be encoded.
Getting the URL with the CURLU_URLENCODE flag set will percent encode
the host name part.
As a bonus, setting the host name part with curl_url_set() no longer
accepts a name that contains space, CR or LF.
Test 1560 has been extended to verify percent encodings.
Reported-by: Noam Moshe
Reported-by: Sharon Brizinov
Reported-by: Raul Onitza-Klugman
Reported-by: Kirill Efimov
Fixes #7830
Closes #7834
|
|
|
|
|
|
|
|
|
|
| |
Make it easy to use the same set of test flags
throughout all current and future CI builds.
Reviewed-by: Jay Satiro
Follow up to #7690
Closes #7785
|
| |
|
|
|
|
|
|
|
| |
Settting Host: or Transfer-Encoding: chunked actually have special
meanings to libcurl. This change tries to document them
Closes #7829
|
|
|
|
|
|
|
|
| |
and make sure to not send Host: over h2.
Fixes #7679
Reported-by: David Cook
Closes #7827
|
|
|
|
|
|
|
|
| |
lcrypto may depend on lz, and configure corrently fails with when
statically linking as the order is "-lz -lcrypto". This commit switches
the order to "-lcrypto -lz".
Closes #7826
|
|
|
|
|
|
|
| |
Available since OpenSSL 0.9.7. The low-level SHA256 interface is
deprecated in OpenSSL v3, and its usage was discouraged even before.
Closes https://github.com/curl/curl/pull/7808
|
|
|
|
|
|
|
| |
This selects another SSL backend then if available, or otherwise at
least gives a meaningful error message.
Closes https://github.com/curl/curl/pull/7808
|
|
|
|
|
|
|
|
|
|
| |
Only use OpenSSL's MD5 code if it's available.
Also fix wolfSSL build with `NO_MD5`, in which case neither the
wolfSSL/OpenSSL implementation nor the fallback implementation was
used.
Closes https://github.com/curl/curl/pull/7808
|
|
|
|
|
|
|
| |
... not a size_t!
Detected by Coverity: CID 1492331.
Closes #7823
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
- Use RtlVerifyVersionInfo instead of VerifyVersionInfo, when possible.
Later versions of Windows have normal version functions that compare and
return versions based on the way the application is manifested, instead
of the actual version of Windows the application is running on. We
prefer the actual version of Windows so we'll now call the Rtl variant
of version functions (RtlVerifyVersionInfo) which does a proper
comparison of the actual version.
Reported-by: Wyatt O'Day
Ref: https://github.com/curl/curl/pull/7727
Fixes https://github.com/curl/curl/issues/7742
Closes https://github.com/curl/curl/pull/7810
|
| |
|
|
|
|
|
|
|
|
| |
Add test 367 to verify.
Reported-by: Rick Lane
Fixes #7819
Closes #7820
|
|
|
|
|
|
|
|
|
| |
... and close connections that are too old instead of reusing them.
By default, this behavior is disabled.
Bug: https://curl.se/mail/lib-2021-09/0058.html
Closes #7751
|
|
|
|
|
|
|
|
| |
Commit f65d7889b added getreferrer, and commit ae8e11ed5 multi-legacy,
both of which missed adding .gitignore clauses for the built binaries.
Closes #7817
Reviewed-by: Daniel Stenberg <daniel@haxx.se>
|
|
|
|
| |
Closes #7813
|
|
|
|
| |
Closes #7812
|
|
|
|
|
| |
Closes: #7811
Reviewed-by: Daniel Gustafsson <daniel@yesql.se>
|
|
|
|
|
|
| |
For cpr, BBHTTP, Eiffel, Harbour, Haskell, Mono, and Rust
Closes #7809
|
|
|
|
| |
fatal: path 'src/tool_listhelp.c' exists on disk, but not in [tag]
|
|
|
|
|
|
|
|
|
|
| |
Capabilities of sasl module are extended to exchange messages in binary
as an alternative to base64.
If http authentication flags have been set, those are used as sasl
default preferred mechanisms.
Closes #6930
|
|
|
|
|
|
|
|
| |
Prior to this commit, OpenSSL could be used for all these functions, but
not wolfSSL. This commit makes it so wolfSSL will be used if USE_WOLFSSL
is defined.
Closes #7806
|
|
|
|
| |
... which makes the shown delta number wrong until next release.
|
| |
|
|
|
|
|
|
|
|
| |
Adjust the description position to make an aligned column when doing
help listings, which is more pleasing to the eye.
Suggested-by: Gisle Vanem
Closes #7792
|
|
|
|
|
|
|
|
|
| |
With this change applied, the now expired 'DST Root CA X3' cert will no
longer be included in the output.
Details: https://letsencrypt.org/docs/dst-root-ca-x3-expiration-september-2021/
Closes #7801
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
tool_listhelp.c is now a separate file with only the command line --help
output, exactly as generated by gen.pl. This makes it easier to generate
updates according to what's in the docs/cmdline-opts docs.
cd $srcroot/docs/cmdline-opts
./gen.pl listhelp *.d > $srcroot/src/tool_listhelp.c
With a configure build, this also works:
make -C src listhelp
Closes #7787
|
|
|
|
|
|
|
| |
In particular, the quantum safe KEM and hybrid curves if wolfSSL is
built to support them.
Closes #7728
|
|
|
|
| |
Closes #7737
|