summaryrefslogtreecommitdiff
path: root/tests/data
Commit message (Collapse)AuthorAgeFilesLines
* Add test372: binary zero in data elementFabian Keil2022-01-072-1/+50
|
* test719-721: require "proxy" feature present to runDaniel Stenberg2022-01-053-0/+7
| | | | | | | Bug: https://github.com/curl/curl/pull/8223#issuecomment-1005188696 Reported-by: Marc Hörsken Closes #8226
* test719: require ipv6 support to runDaniel Stenberg2022-01-041-0/+3
| | | | | | | | Follow-up to effd2bd7ba2a5fd244 Reported-by: Marc Hörsken Bug: https://github.com/curl/curl/pull/8217#issuecomment-1004681145 Closes #8223
* test719-721: verify SOCKS detailsDaniel Stenberg2022-01-034-6/+71
| | | | Using the new verify/socks details
* socks5: use appropriate ATYP for numerical IP address host namesDaniel Stenberg2022-01-033-1/+113
| | | | | | | | | | When not resolving the address locallly (known as socks5h). Add test 719 and 720 to verify. Reported-by: Peter Piekarski Fixes #8216 Closes #8217
* tool_operate: warn if too many output arguments were foundDaniel Stenberg2022-01-032-2/+58
| | | | | | | | More output instructions than URLs is likely a user error. Add test case 371 to verify Closes #8210
* tests: Add test for CURLOPT_HTTP200ALIASESVladimir Panteleev2021-12-212-1/+48
|
* misc: s/e-mail/emailDaniel Stenberg2021-12-191-3/+3
| | | | | | Consistency is king. Following the lead in everything curl. Closes #8159
* tests/data/test302[12]: fix MSYS2 path conversion of hostpubsha256Marc Hoersken2021-12-142-0/+10
| | | | | | | | | | Ref: https://www.msys2.org/wiki/Porting/#filesystem-namespaces Reviewed-by: Marcel Raad Reviewed-by: Jay Satiro Fixes #8084 Closes #8138
* test1156: fixup the stdout check for WindowsDaniel Stenberg2021-12-101-1/+1
| | | | | | | | It is not text mode. Follow-up to 6f73e68d182 Closes #8134
* test1528: enable for hyperDaniel Stenberg2021-12-092-2/+1
| | | | Closes #8128
* test1527: enable for hyperDaniel Stenberg2021-12-092-1/+2
| | | | Closes #8128
* test1526: enable for hyperDaniel Stenberg2021-12-092-1/+2
| | | | Closes #8128
* test1525: slightly tweaked for hyperDaniel Stenberg2021-12-092-1/+2
| | | | Closes #8128
* test1156: enable for hyperDaniel Stenberg2021-12-092-4/+2
| | | | | | Minor reorg of the lib1156 code and it works fine for hyper. Closes #8127
* test661: enable for hyperDaniel Stenberg2021-12-091-1/+0
| | | | Closes #8126
* test1556: adjust for hyperDaniel Stenberg2021-12-072-14/+13
| | | | Closes #8105
* test1554: adjust for hyperDaniel Stenberg2021-12-072-1/+6
| | | | Closes #8104
* multi: handle errors returned from socket/timer callbacksDaniel Stenberg2021-12-063-2/+52
| | | | | | | | | | | | The callbacks were partially documented to support this. Now the behavior is documented and returning error from either of these callbacks will effectively kill all currently ongoing transfers. Added test 530 to verify Reported-by: Marcelo Juchem Fixes #8083 Closes #8089
* tests: Add some missing keywords to testsDan Fandrich2021-11-307-0/+7
| | | | | These are needed to skip some tests when configure options have disabled certain features.
* digest: compute user:realm:pass digest w/o userhashGlenn Strauss2021-11-304-16/+16
| | | | | | | | | https://datatracker.ietf.org/doc/html/rfc7616#section-3.4.4 ... the client MUST calculate a hash of the username after any other hash calculation ... Signed-off-by: Glenn Strauss <gstrauss@gluelogic.com> Closes #8066
* urlapi: provide more detailed return codesbagder/urlapi-returncodesDaniel Stenberg2021-11-252-14/+26
| | | | | | | | | | | | | | | | | | | | Previously, the return code CURLUE_MALFORMED_INPUT was used for almost 30 different URL format violations. This made it hard for users to understand why a particular URL was not acceptable. Since the API cannot point out a specific position within the URL for the problem, this now instead introduces a number of additional and more fine-grained error codes to allow the API to return more exactly in what "part" or section of the URL a problem was detected. Also bug-fixes curl_url_get() with CURLUPART_ZONEID, which previously returned CURLUE_OK even if no zoneid existed. Test cases in 1560 have been adjusted and extended. Tests 1538 and 1559 have been updated. Updated libcurl-errors.3 and curl_url_strerror() accordingly. Closes #8049
* http: enable haproxy support for hyper backendDaniel Stenberg2021-11-191-2/+0
| | | | | | | | | | | | | | This is done by having native code do the haproxy header output before hyper issues its request. The little downside with this approach is that we need the entire Curl_buffer_send() function built, which is otherwise not used for hyper builds. If hyper ends up getting native support for the haproxy protocols we can backpedal on this. Enables test 1455 and 1456 Closes #8034
* mime: use percent-escaping for multipart form field and file namesPatrick Monnerat2021-11-156-10/+278
| | | | | | | | | | | | | | | | | | Until now, form field and file names where escaped using the backslash-escaping algorithm defined for multipart mails. This commit replaces this with the percent-escaping method for URLs. As this may introduce incompatibilities with server-side applications, a new libcurl option CURLOPT_MIME_OPTIONS with bitmask CURLMIMEOPT_FORMESCAPE is introduced to revert to legacy use of backslash-escaping. This is controlled by new cli tool option --form-escape. New tests and documentation are provided for this feature. Reported by: Ryan Sleevi Fixes #7789 Closes #7805
* test1939: require proxy support to runDaniel Stenberg2021-11-141-0/+3
| | | | | | Follow-up to f0b7099a10d1a Closes #8011
* test302[12]: run only with the libssh2 backendDaniel Stenberg2021-11-142-0/+8
| | | | | | | | ... as the others don't support --hostpubsha256 Reported-by: Paul Howarth Fixes #8009 Closes #8010
* multi: shut down CONNECT in Curl_detach_connnectionDaniel Stenberg2021-11-112-1/+53
| | | | | | | | | | ... to prevent a lingering pointer that would lead to a double-free. Added test 1939 to verify. Reported-by: Stephen M. Coakley Fixes #7982 Closes #7986
* tests: add Schannel-specific tests and disable unsupported onesMarc Hoersken2021-11-0913-8/+316
| | | | | | | | | | | | | | | | | Adds Schannel variants of SSLpinning tests that include the option --ssl-revoke-best-effort to ignore certificate revocation check failures which is required due to our custom test CA certificate. Disable the original variants if the Schannel backend is enabled. Also skip all IDN tests which are broken while using an msys shell. This is a step to simplify test exclusions for Windows and MinGW. Reviewed-by: Jay Satiro Reviewed-by: Marcel Raad Reviewed-by: Daniel Stenberg Closes #7968
* tool_operate: a failed etag save now only fails that transferDaniel Stenberg2021-11-043-1/+85
| | | | | | | | | | | | | | | When failing to create the output file for saving an etag, only fail that particular single transfer and allow others to follow. In a serial transfer setup, if no transfer at all is done due to them all being skipped because of this error, curl will output an error message and return exit code 26. Added test 369 and 370 to verify. Reported-by: Earnestly on github Ref: #7942 Closes #7945
* tests: kill some test servers afterwards to avoid locked logfilesMarc Hoersken2021-11-013-0/+9
| | | | | Reviewed-by: Daniel Stenberg Closes #7925
* test1160: edited to work with hyperDaniel Stenberg2021-10-272-2/+1
| | | | Closes #7912
* data/DISABLED: enable tests that now work with hyperDaniel Stenberg2021-10-271-5/+0
| | | | Closes #7911
* test559: add 'HTTP' in keywordsDaniel Stenberg2021-10-271-0/+1
| | | | | | Makes it run fine with hyper Closes #7911
* test552: updated to work with hyperDaniel Stenberg2021-10-271-2/+2
| | | | Closes #7911
* http: reject HTTP response codes < 100Daniel Stenberg2021-10-273-4/+10
| | | | | | | | | | ... which then also includes negative ones as test 1430 uses. This makes native + hyper backend act identically on this and therefore test 1430 can now be enabled when building with hyper. Adjust test 1431 as well. Closes #7909
* hyper: disable test 1294 since hyper doesn't allow such crazy headersDaniel Stenberg2021-10-252-1/+2
| | | | Closes #7905
* c-hyper: make CURLOPT_SUPPRESS_CONNECT_HEADERS workDaniel Stenberg2021-10-251-1/+0
| | | | | | Verified by the enabled test 1288 Closes #7905
* test1287: make work on hyperDaniel Stenberg2021-10-252-1/+2
| | | | Closes #7905
* test1266/1267: disabled on hyper: no HTTP/0.9 supportDaniel Stenberg2021-10-253-2/+8
| | | | Closes #7905
* tests: enable more tests with hyperDaniel Stenberg2021-10-254-33/+31
| | | | | | Adjusted 1144, 1164 and 1176. Closes #7900
* tests: use python3 in test 1451Samuel Henrique2021-10-241-1/+1
| | | | | | | | | | | This is a continuation of commit ec91b5a69000bea0794bbb3 in which changing this test was missed. There are no other python2 leftovers now. Based on a Debian patch originally written by Alessandro Ghedini <ghedo@debian.org> Closes #7899
* hyper: does not support disabling CURLOPT_HTTP_TRANSFER_DECODINGDaniel Stenberg2021-10-222-1/+3
| | | | | | | | Simply because hyper doesn't have this ability. Mentioned in docs now. Skip test 326 then Closes #7889
* test262: don't attempt with hyperDaniel Stenberg2021-10-222-1/+0
| | | | | | | This test verifies that curl works with binary zeroes in HTTP response headers and hyper refuses such. They're not kosher http. Closes #7889
* c-hyper: make test 217 runDaniel Stenberg2021-10-221-1/+0
| | | | Closes #7889
* DISABLED: enable test 209+213 for hyperDaniel Stenberg2021-10-221-2/+0
| | | | | | Follow-up to 823d3ab855c Closes #7889
* test207: accept a different error code for hyperDaniel Stenberg2021-10-222-1/+5
| | | | | | | It returns HYPERE_UNEXPECTED_EOF for this case which we convert to the somewhat generic CURLE_RECV_ERROR. Closes #7889
* http_proxy: multiple CONNECT with hyper done betterDaniel Stenberg2021-10-211-1/+0
| | | | | | Enabled test 206 Closes #7888
* test1185: verify checksrcDaniel Stenberg2021-10-182-1/+185
| | | | Closes #7866
* urlapi: skip a strlen(), pass in zeroDaniel Stenberg2021-10-151-1/+1
| | | | | | | | | ... 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. Reviewed-by: Daniel Gustafsson Closes #7862
* aws-sigv4: make signature work when post data is binaryAbhinav Singh2021-10-153-1/+73
| | | | | | | | | 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