| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
... to avoid running in that state with data->conn being NULL.
|
|
|
|
|
| |
As that's a significant error condition and scan-build warns for NULL
pointer dereferences if we don't.
|
|
|
|
| |
Detected by scan-build
|
| |
|
|
|
|
|
|
|
|
| |
This improves IDNA2003 compatiblity.
Reported-by: Bubu on github
Fixes #6423
Closes #6428
|
|
|
|
| |
Closes #6430
|
|
|
|
|
|
|
| |
When doing a request with a request body expecting a 401/407 back, that
initial request is sent with a zero content-length. Test 177 and more.
Closes #6424
|
|
|
|
|
|
|
|
|
|
| |
New option USE_LIBIDN2 defaults to ON for libidn2 detection. Prior to
this change libidn2 detection could not be turned off in cmake builds.
Reported-by: William A Rowe Jr
Fixes https://github.com/curl/curl/issues/6361
Closes https://github.com/curl/curl/pull/6362
|
| |
|
|
|
|
| |
... to make "Hyper mode" work better.
|
|
|
|
|
|
|
| |
... as it is misleading.
Ref #6379
Closes #6421
|
|
|
|
| |
Ref #6379
|
|
|
|
|
|
|
| |
Follow-up to a1f06f32b860, to make sure it can be handled separately
from plain gopher.
Closes #6418
|
|
|
|
|
|
|
|
|
|
| |
... so that Retry-After and other meta-content can still be used.
Added 1634 to verify. Adjusted test 194 and 281 since --fail now also
includes the header-terminating CRLF in the output before it exits.
Fixes #6408
Closes #6409
|
|
|
|
|
|
|
|
|
|
| |
... to make build tools/valgrind warn if no curl_global_cleanup is
called.
This is conditionally only done for debug builds with the env variable
CURL_GLOBAL_INIT set.
Closes #6410
|
| |
|
|
|
|
| |
Closes #6419
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
... and not in the connection setup, as for multiplexed transfers the
connection setup might be skipped and then the transfer would end up
without the set user-agent!
Reported-by: Flameborn on github
Assisted-by: Andrey Gursky
Assisted-by: Jay Satiro
Assisted-by: Mike Gelfand
Fixes #6312
Closes #6417
|
|
|
|
| |
...as Hyper doesn't support HTTP/0.9
|
|
|
|
|
|
| |
... makes test 36 work.
Closes #6412
|
|
|
|
|
|
|
| |
Printing trust purposes are now sorted, making the output deterministic
when running on the same input certdata.txt.
Closes #6413
|
|
|
|
| |
Fixed by #6411
|
|
|
|
| |
Closes #6411
|
| |
|
|
|
|
| |
Follow-up to 7de2e96535e9
|
|
|
|
|
|
| |
Test 30
Closes #6407
|
|
|
|
|
|
| |
Makes test 80 run
Closes #6406
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
- Fix the failed truncation and failed writing body error messages to
not be shown unless error messages are shown. (ie the user has
specified -sS, or has not specified -s).
- Also prefix same error messages with "curl: ", for example:
curl: (23) Failed to truncate, exiting
Prior to this change the failed truncation error messages would be shown
if not -s, but did not account for -sS which should show.
Prior to this change the failed writing body error messages would be
shown always.
Ref: https://curl.se/docs/manpage.html#-S
Bug: https://curl.se/mail/archive-2020-12/0017.html
Reported-by: Hongyi Zhao
Closes https://github.com/curl/curl/pull/6402
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The wolfSSL TLS library defines NO_OLD_TLS in some of their build
configurations and that causes the library to be built without TLS 1.1.
For example if MD5 is explicitly disabled when building wolfSSL then
that defines NO_OLD_TLS and the library is built without TLS 1.1 [1].
Prior to this change attempting to build curl with a wolfSSL that was
built with NO_OLD_TLS would cause a build link error undefined reference
to wolfTLSv1_client_method.
[1]: https://github.com/wolfSSL/wolfssl/blob/v4.5.0-stable/configure.ac#L2366
Bug: https://curl.se/mail/lib-2020-12/0121.html
Reported-by: Julian Montes
Closes https://github.com/curl/curl/pull/6388
|
|
|
|
| |
"--retry with a 429 response and Retry-After:"
|
|
|
|
|
|
| |
... since it runs into the 50 minute time limit too often otherwise.
Closes #6403
|
|
|
|
|
|
| |
Mostly thanks to this archived web page for urlget:
https://web.archive.org/web/19980216125115/http://www.inf.ufrgs.br/~sagula/urlget.html
|
|
|
|
|
|
|
|
|
|
|
|
| |
When doing HTTP authentication and a port number set with CURLOPT_PORT,
the code would previously have the URL's port number override as if it
had been a redirect to an absolute URL.
Added test 1568 to verify.
Reported-by: UrsusArctos on github
Fixes #6397
Closes #6400
|
|
|
|
|
|
|
|
| |
We currently use both spellings the british "behaviour" and the american
"behavior". However "behavior" is more used in the project so I think
it's worth dropping the british name.
Closes #6395
|
|
|
|
|
| |
Reported-by: Cherish98
Bug: https://curl.se/mail/archive-2020-12/0018.html
|
|
|
|
|
|
| |
To make it more obvious to users what doesn't work (yet)
Closes #6389
|
| |
|
|
|
|
|
|
| |
Test 77-78
Closes #6391
|
|
|
|
|
|
| |
Test 64, 65, 67, 68, 69, 70, 72
Closes #6390
|
|
|
|
| |
... and make private functions static.
|
|
|
|
|
|
|
| |
The type of the buffer in curl_read_callback is 'char *', not 'void *'.
Signed-off-by: Olaf Hering <olaf@aepfle.de>
Closes #6392
|
|
|
|
| |
Follow-up to 26e46617b9
|
|
|
|
| |
Follow-up to 26e46617b9
|
|
|
|
|
|
|
| |
To have it properly complain on empty statements with no effect.
Ref: #6376
Closes #6378
|
|
|
|
| |
... by making macros use "do {} while(0)"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Extend the syntax of CURLOPT_RESOLVE strings: allow using a '+' prefix
(similar to the existing '-' prefix for removing entries) to add
DNS cache entries that will time out just like entries that are added
by libcurl itself.
Append " (non-permanent)" to info log message in case a non-permanent
entry is added.
Adjust relevant comments to reflect the new behavior.
Adjust documentation.
Extend unit1607 to test the new functionality.
Closes #6294
|
|
|
|
|
|
| |
Bug: https://github.com/curl/curl/commit/8ab78f720ae478d533e30b202baec4b451741579#commitcomment-45445950
Reported-by: Gisle Vanem
Closes #6381
|
|
|
|
| |
Closes #6385
|
|
|
|
| |
Closes #6380
|