summaryrefslogtreecommitdiff
path: root/tests/data
Commit message (Collapse)AuthorAgeFilesLines
* smtp: Allow RCPT TO command to fail for some recipientsPavel Volgarev2020-01-217-1/+320
| | | | | | | | Introduces CURLOPT_MAIL_RCPT_ALLLOWFAILS. Verified with the new tests 3002-3007 Closes #4816
* curl: Let -D merge headers in one file againEmil Engler2020-01-215-0/+20
| | | | | Closes #4762 Fixes #4753
* HTTP: increase EXPECT_100_THRESHOLD to 1Mb加藤郁之2020-01-207-12/+9
| | | | | | Mentioned: https://curl.haxx.se/mail/lib-2020-01/0050.html Closes #4814
* curl: make #0 not output the full URLDaniel Stenberg2020-01-132-1/+69
| | | | | | | | | | It was not intended nor documented! Added test 1176 to verify. Reported-by: vshmuk on hackerone Closes #4812
* ngtcp2: Add an error code for QUIC connection errorsEmil Engler2020-01-111-1/+2
| | | | | | | | | | - Add new error code CURLE_QUIC_CONNECT_ERROR for QUIC connection errors. Prior to this change CURLE_FAILED_INIT was used, but that was not correct. Closes https://github.com/curl/curl/pull/4754
* multi: Change curl_multi_wait/poll to error on negative timeoutJay Satiro2020-01-111-1/+2
| | | | | | | | | | | | | | - Add new error CURLM_BAD_FUNCTION_ARGUMENT and return that error when curl_multi_wait/poll is passed timeout param < 0. Prior to this change passing a negative value to curl_multi_wait/poll such as -1 could cause the function to wait forever. Reported-by: hamstergene@users.noreply.github.com Fixes https://github.com/curl/curl/issues/4763 Closes https://github.com/curl/curl/pull/4765
* test1167: verify global symbols in public headers are curl prefixedDaniel Stenberg2020-01-092-1/+26
| | | | | | | ... using the new badsymbols.pl perl script Fixes #4793 Closes #4794
* TrackMemory tests: always remove CR before LFMarcel Raad2020-01-062-0/+2
| | | | | | | | It was removed for output containing ' =' via `s/ =.*//`. With classic MinGW, this made lines with `free()` end with CRLF, but lines with e.g. `malloc()` end with only LF. The tests expect LF only. Closes https://github.com/curl/curl/pull/4788
* curl -w: handle a blank input file correctlyDaniel Stenberg2020-01-062-1/+49
| | | | | | | | | | Previously it would end up with an uninitialized memory buffer that would lead to a crash or junk getting output. Added test 1271 to verify. Reported-by: Brian Carpenter Closes #4786
* curl: properly free mimepost dataDaniel Stenberg2020-01-042-2/+69
| | | | | | | | | | ... as it could otherwise leak memory when a transfer failed. Added test 1293 to verify. Reported-by: Brian Carpenter Fixes #4781 Closes #4782
* tests: Change NTLM tests to require SSLJay Satiro2019-12-3148-0/+48
| | | | | | | | | | | | | | | | | | Prior to this change tests that required NTLM feature did not require SSL feature. There are pending changes to cmake builds that will allow enabling NTLM in non-SSL builds in Windows. In that case the NTLM auth strings created are different from what is expected by the NTLM tests and they fail: "The issue with NTLM is that previous non-SSL builds would not enable NTLM and so the NTLM tests would be skipped." Assisted-by: marc-groundctl@users.noreply.github.com Ref: https://github.com/curl/curl/pull/4717#issuecomment-566218729 Closes https://github.com/curl/curl/pull/4768
* sws: search for "Testno:" header uncondtionally if no testnoDaniel Stenberg2019-12-191-1/+2
| | | | | | | | | Even if the initial request line wasn't found. With the fix to 1455, the test number is now detected correctly. (Problem found when running tests in random order.) Closes #4744
* tests: set LC_ALL in more testsDaniel Stenberg2019-12-193-3/+3
| | | | | | Follow-up to 23208e330ac0c21 Closes #4743
* test165: set LC_ALL=en_US.UTF-8 tooDaniel Stenberg2019-12-191-1/+1
| | | | | | | | | On my current Debian Unstable with libidn2 2.2.0, I get an error if LC_ALL is set to blank. Then curl errors out with: curl: (3) Failed to convert www.åäö.se to ACE; could not convert string to UTF-8 Closes #4738
* test1456: remove the use of a fixed local portDaniel Stenberg2019-12-191-2/+8
| | | | | | | | | Fixup the test to instead not compare the port number. It sometimes caused problems like this: "curl: (45) bind failed with errno 98: Address already in use" Closes #4733
* test1270: a basic -w redirect_url testDaniel Stenberg2019-12-182-1/+70
| | | | Closes #4728
* tests: use DoH feature for DoH testsMarcel Raad2019-12-133-1/+2
| | | | | | | Previously, http/2 was used instead. Assisted-by: Jay Satiro Closes https://github.com/curl/curl/pull/4692
* conncache: fix multi-thread use of shared connection cacheDaniel Stenberg2019-12-091-0/+6
| | | | | | | | | It could accidentally let the connection get used by more than one thread, leading to double-free and more. Reported-by: Christopher Reid Fixes #4544 Closes #4557
* etag: allow both --etag-compare and --etag-save in same cmdlineDaniel Stenberg2019-12-052-1/+62
| | | | | Fixes #4669 Closes #4678
* test342: make it return a 304 as the tag matchesDaniel Stenberg2019-12-051-3/+2
|
* curl: two new command line options for etagsMaros Priputen2019-11-284-2/+180
| | | | | | | | --etag-compare and --etag-save Suggested-by: Paul Hoffman Fixes #4277 Closes #4543
* multi: add curl_multi_wakeup()Gergely Nagy2019-11-255-2/+76
| | | | | | | | | | | | This commit adds curl_multi_wakeup() which was previously in the TODO list under the curl_multi_unblock name. On some platforms and with some configurations this feature might not be available or can fail, in these cases a new error code (CURLM_WAKEUP_FAILURE) is returned from curl_multi_wakeup(). Fixes #4418 Closes #4608
* test1175: verify symbols-in-versions and libcurl-errors.3 in syncDaniel Stenberg2019-11-222-1/+26
| | | | Closes #4628
* include: make CURLE_HTTP3 use a new error codeDaniel Stenberg2019-11-211-2/+3
| | | | | | | | | To avoid potential issues with error code reuse. Reported-by: Christoph M. Becker Assisted-by: Dan Fandrich Fixes #4601 Closes #4627
* curl: fix -T globbingDaniel Stenberg2019-11-144-0/+223
| | | | | | | | | | | | Regression from e59371a4936f8 (7.67.0) Added test 490, 491 and 492 to verify the functionality. Reported-by: Kamil Dudka Reported-by: Anderson Sasaki Fixes #4588 Closes #4591
* quiche: reject headers in the wrong orderDaniel Stenberg2019-11-121-1/+1
| | | | | | | | Pseudo header MUST come before regular headers or cause an error. Reported-by: Cynthia Coan Fixes #4571 Closes #4584
* test1558: use double slash after file:Marcel Raad2019-11-101-5/+1
| | | | | | | Classic MinGW / MSYS 1 doesn't support `MSYS2_ARG_CONV_EXCL`, so this test unnecessarily failed when using `file:/` instead of `file:///`. Closes https://github.com/curl/curl/pull/4554
* test1560: require IPv6 for IPv6 aware URL parsingDaniel Stenberg2019-11-081-0/+1
| | | | | | | | | The URL parser function can't reject a bad IPv6 address properly when curl was built without IPv6 support. Reported-by: Marcel Raad Fixes #4556 Closes #4572
* test1591: fix spelling of http featureMarcel Raad2019-10-241-1/+1
| | | | | | The test never got run because the feature name is `http` in lowercase. Closes https://github.com/curl/curl/pull/4520
* conn-reuse: requests wanting NTLM can reuse non-NTLM connectionsDaniel Stenberg2019-10-232-1/+64
| | | | | | | | Added test case 338 to verify. Reported-by: Daniel Silverstone Fixes #4499 Closes #4514
* tests: add missing proxy featuresMarcel Raad2019-10-232-0/+2
|
* tests: use %FILE_PWD for file:// URLsMarcel Raad2019-10-2119-19/+19
| | | | | | | This way, we always have exactly one slash after the host name, making the tests pass when curl is compiled with the MSYS GCC. Closes https://github.com/curl/curl/pull/4512
* tests: add `connect to non-listen` keywordsMarcel Raad2019-10-212-0/+2
| | | | | | These tests try to connect to ports nothing is listening on. Closes https://github.com/curl/curl/pull/4511
* test1162: disable MSYS2's POSIX path conversionMarcel Raad2019-10-171-0/+4
| | | | | This avoids MSYS2 converting the backslasb in the URL to a slash, causing the test to fail.
* url: normalize CURLINFO_EFFECTIVE_URLDaniel Stenberg2019-10-162-1/+54
| | | | | | | | | | | | | | | | The URL extracted with CURLINFO_EFFECTIVE_URL was returned as given as input in most cases, which made it not get a scheme prefixed like before if the URL was given without one, and it didn't remove dotdot sequences etc. Added test case 1907 to verify that this now works as intended and as before 7.62.0. Regression introduced in 7.62.0 Reported-by: Christophe Dervieux Fixes #4491 Closes #4493
* tests: line ending fixes for WindowsMarcel Raad2019-10-1619-19/+19
| | | | | | Mark some files as text. Closes https://github.com/curl/curl/pull/4490
* tests: use proxy featureMarcel Raad2019-10-15133-5/+287
| | | | | | This makes the tests succeed when using --disable-proxy. Closes https://github.com/curl/curl/pull/4488
* tests: use port 2 instead of 60000 for a safer non-listening portDaniel Stenberg2019-10-093-3/+3
| | | | ... when the tests want "connection refused".
* curl: ensure HTTP 429 triggers --retryStian Soiland-Reyes2019-10-052-2/+2
| | | | | | | | This completes #3794. Also make sure the new tests from #4195 are enabled Closes #4465
* urlapi: fix use-after-free bugDaniel Stenberg2019-10-032-1/+80
| | | | | | | | | | | Follow-up from 2c20109a9b5d04 Added test 663 to verify. Reported by OSS-Fuzz Bug: https://crbug.com/oss-fuzz/17954 Closes #4453
* redirect: when following redirects to an absolute URL, URL encode itDaniel Stenberg2019-10-022-0/+76
| | | | | | | | ... to make it handle for example (RFC violating) embeded spaces. Reported-by: momala454 on github Fixes #4445 Closes #4447
* curl: create easy handles on-demand and not ahead of timeDaniel Stenberg2019-10-021-2/+2
| | | | | | | | | | This should again enable crazy-large download ranges of the style [1-10000000] that otherwise easily ran out of memory starting in 7.66.0 when this new handle allocating scheme was introduced. Reported-by: Peter Sumatra Fixes #4393 Closes #4438
* altsvc: accept quoted ma and persist valuesDaniel Stenberg2019-09-301-0/+1
| | | | | | As mandated by the spec. Test 1654 is extended to verify. Closes #4443
* cookies: using a share with cookies shouldn't enable the cookie engineDaniel Stenberg2019-09-283-58/+115
| | | | | | | | | | | | | | | | | The 'share object' only sets the storage area for cookies. The "cookie engine" still needs to be enabled or activated using the normal cookie options. This caused the curl command line tool to accidentally use cookies without having been told to, since curl switched to using shared cookies in 7.66.0. Test 1166 verifies Updated test 506 Fixes #4429 Closes #4434
* FTP: add test for FTPFILE_NOCWD: Avoid redundant CWDsZenju2019-09-272-1/+74
| | | | | | Add libtest 661 Closes #4417
* FTP: url-decode path before evaluationZenju2019-09-272-2/+4
| | | | Closes #4428
* Revert "FTP: url-decode path before evaluation"Daniel Stenberg2019-09-262-4/+2
| | | | This reverts commit 2f036a72d543e96128bd75cb0fedd88815fd42e2.
* FTP: url-decode path before evaluationZenju2019-09-262-2/+4
| | | | Closes #4423
* FTP: remove trailing slash from path for LIST/MLSDZenju2019-09-184-5/+5
| | | | Closes #4348
* doh: fix (harmless) buffer overrunPaul Dreik2019-09-152-1/+27
| | | | | | | | Added unit test case 1655 to verify. Close #4352 the code correctly finds the flaws in the old code, if one temporarily restores doh.c to the old version.