summaryrefslogtreecommitdiff
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* sshserver: remove use of AuthorizedKeysFile2Daniel Stenberg2016-03-211-3/+1
| | | | | | | Support for the (undocumented) AuthorizedKeysFile2 was removed in OpenSSH 5.9, released in September 2011 Closes #715
* runtests: mention when run event-basedDaniel Stenberg2016-03-141-1/+2
|
* cookies: first n/v pair in Set-Cookie: is the cookie, then parametersDaniel Stenberg2016-03-102-2/+2
| | | | | | | | | | | | | | | | | | | RFC 6265 section 4.1.1 spells out that the first name/value pair in the header is the actual cookie name and content, while the following are the parameters. libcurl previously had a more liberal approach which causes significant problems when introducing new cookie parameters, like the suggested new cookie priority draft. The previous logic read all n/v pairs from left-to-right and the first name used that wassn't a known parameter name would be used as the cookie name, thus accepting "Set-Cookie: Max-Age=2; person=daniel" to be a cookie named 'person' while an RFC 6265 compliant parser should consider that to be a cookie named 'Max-Age' with an (unknown) parameter 'person'. Fixes #709
* cookie: do not refuse cookies for localhostTim Rühsen2016-03-081-0/+1
| | | | Closes #658
* test46: change cookie expiry dateDaniel Stenberg2016-03-061-4/+4
| | | | | | | Since two of the cookies would now otherwise expire and cause the test to fail after commit 20de9b4f09 Discussed in #697
* tests/sshserver.pl: use RSA instead of DSA for host authKamil Dudka2016-02-233-10/+10
| | | | | | | | | | DSA is no longer supported by OpenSSH 7.0, which causes all SCP/SFTP test cases to be skipped. Using RSA for host authentication works with both old and new versions of OpenSSH. Reported-by: Karlson2k Closes #676
* TFTP: add option to suppress TFTP option requests (Part 2)Jay Satiro2016-02-233-1/+88
| | | | | | | | | | - Add tests. - Add an example to CURLOPT_TFTP_NO_OPTIONS.3. - Add --tftp-no-options to expose CURLOPT_TFTP_NO_OPTIONS. Bug: https://github.com/curl/curl/issues/481
* runtests: Fixed usage of %PWD on MinGW64Karlson2k2016-02-221-1/+1
| | | | Closes #672
* Enabled test 1437 after the bug fix in commit 3fa220a6Dan Fandrich2016-02-201-1/+0
|
* Added test 1437 to verify a memory leakDan Fandrich2016-02-193-1/+86
| | | | Reported-by: neex@users.noreply.github.com
* test1604: Add to Makefile.inc so it gets runDan Fandrich2016-02-131-1/+1
|
* tool_doswin: Support for literal path prefix \\?\Jay Satiro2016-02-091-0/+19
| | | | For example something like --output \\?\C:\foo
* cookies: allow spaces in cookie names, cut of trailing spacesDaniel Stenberg2016-02-081-1/+3
| | | | | | | | | | | | It turns out Firefox and Chrome both allow spaces in cookie names and there are sites out there using that. Turned out the code meant to strip off trailing space from cookie names didn't work. Fixed now. Test case 8 modified to verify both these changes. Closes #639
* Proxy-Connection: stop sending this header by defaultDaniel Stenberg2016-02-08100-162/+0
| | | | | | | | | RFC 7230 says we should stop. Firefox already stopped. Bug: https://github.com/curl/curl/issues/633 Reported-By: Brad Fitzpatrick Closes #633
* unit1604: Fix unit setup return codeJay Satiro2016-02-051-1/+1
|
* tool_doswin: Improve sanitization processingJay Satiro2016-02-053-1/+356
| | | | | | | | | | | | | | | | | | | | | | | | | | | | - Add unit test 1604 to test the sanitize_file_name function. - Use -DCURL_STATICLIB when building libcurltool for unit testing. - Better detection of reserved DOS device names. - New flags to modify sanitize behavior: SANITIZE_ALLOW_COLONS: Allow colons SANITIZE_ALLOW_PATH: Allow path separators and colons SANITIZE_ALLOW_RESERVED: Allow reserved device names SANITIZE_ALLOW_TRUNCATE: Allow truncating a long filename - Restore sanitization of banned characters from user-specified outfile. Prior to this commit sanitization of a user-specified outfile was temporarily disabled in 2b6dadc because there was no way to allow path separators and colons through while replacing other banned characters. Now in such a case we call the sanitize function with SANITIZE_ALLOW_PATH which allows path separators and colons to pass through. Closes https://github.com/curl/curl/issues/624 Reported-by: Octavio Schroeder
* URLs: change more http to httpsViktor Szakats2016-02-042-3/+3
|
* URLs: follow GitHub project rename (also Travis CI)Viktor Szakats2016-02-042-3/+3
| | | | Closes #632
* URLs: change more http to httpsViktor Szakats2016-02-021-2/+2
|
* URLs: change all http:// URLs to https://Daniel Stenberg2016-02-03183-189/+189
|
* dotdot: allow an empty input string tooDaniel Stenberg2016-02-021-1/+4
| | | | | | | It isn't used by the code in current conditions but for safety it seems sensible to at least not crash on such input. Extended unit test 1395 to verify this too as well as a plain "/" input.
* tests: Add a test for pinnedpubkey fail even when insecureJay Satiro2016-01-182-1/+42
| | | | | Because disabling the peer verification (--insecure) must not disable the public key pinning check (--pinnedpubkey).
* lib: Prefix URLs with lower-case protocol names/schemesMohammad AlSaleh2016-01-111-1/+1
| | | | | | | | | | | | | | | | | | Before this patch, if a URL does not start with the protocol name/scheme, effective URLs would be prefixed with upper-case protocol names/schemes. This behavior might not be expected by library users or end users. For example, if `CURLOPT_DEFAULT_PROTOCOL` is set to "https". And the URL is "hostname/path". The effective URL would be "HTTPS://hostname/path" instead of "https://hostname/path". After this patch, effective URLs would be prefixed with a lower-case protocol name/scheme. Closes #597 Signed-off-by: Mohammad AlSaleh <CE.Mohammad.AlSaleh@gmail.com>
* runtests: Add mbedTLS to the SSL backendsJay Satiro2016-01-101-1/+9
| | | | .. and enable SSLpinning tests for mbedTLS, BoringSSL and LibreSSL.
* connection reuse: IDN host names fixedMichael Kaufmann2016-01-083-1/+192
| | | | | | | Use the ACE form of IDN hostnames as key in the connection cache. Add new tests. Closes #592
* tests: mark IPv6 FTP and FTPS tests with the FTP keywordDaniel Stenberg2016-01-0714-0/+14
|
* test 1515: add data checkMarc Hoersken2015-12-261-0/+4
|
* test 1515: add MSYS support by passing a relative pathMarc Hoersken2015-12-262-2/+2
| | | | MSYS would otherwise turn a /-style path into a C:\-style path.
* test 539: use datacheck mode text for ASCII-mode LISTingsMarc Hoersken2015-12-261-2/+4
| | | | While still using datacheck mode binary for the inline reply data.
* runtests.pl: check up to 5 data parts with different text modesMarc Hoersken2015-12-261-11/+35
| | | | | Move the text-mode conversion for reply/replycheck from the verify section into the load section and add support for 4 more check parts.
* tests 1048 and 1050: use datacheck mode text for ASCII-mode LISTingsMarc Hoersken2015-12-242-2/+2
|
* tests 706 and 707: use datacheck mode text for ASCII-mode LISTingsMarc Hoersken2015-12-242-2/+2
|
* tests 400,403,406: use datacheck mode text for ASCII-mode LISTingsMarc Hoersken2015-12-243-3/+3
|
* sockfilt.c: fix calculation of sleep timeout on WindowsMarc Hoersken2015-12-231-1/+1
| | | | Not converting to double caused small timeouts to be skipped.
* tests first.c: fix calculation of sleep timeout on WindowsMarc Hoersken2015-12-231-1/+1
| | | | Not converting to double caused small timeouts to be skipped.
* test 573: add more debug outputMarc Hoersken2015-12-231-1/+2
|
* test 16: fix on Linux (and Windows) by using plain ASCII charactersMarc Hoersken2015-12-231-2/+2
| | | | Follow up on b064ff0c351bb287557228575ef4c1d079b866fb, thanks Daniel.
* tftpd server: add Windows support by writing files in binary modeMarc Hoersken2015-12-231-0/+4
|
* tests 252-255: use datacheck mode text for ASCII-mode LISTingsMarc Hoersken2015-12-234-4/+4
|
* test 16: fix on Windows by converting data file from ANSI to UTF-8Marc Hoersken2015-12-231-1/+1
|
* test 1326: fix file check since curl is outputting binary dataMarc Hoersken2015-12-171-1/+1
|
* test 1326: fix getting stuck on Windows due to incomplete requestMarc Hoersken2015-12-171-1/+1
| | | | | | The request needs to be read and send in binary mode in order to use CRLF instead of LF. Adding --upload-file - causes curl to read stdin in binary mode.
* sockfilt.c: added some debug output to select_wsMarc Hoersken2015-12-161-0/+11
|
* sockfilt.c: keep lines shorter than 80 charsMarc Hoersken2015-12-161-1/+2
|
* sockfilt.c: do not wait on unreliable file or pipe handleMarc Hoersken2015-12-161-4/+4
| | | | The previous implementation caused issues on modern MSYS2 runtimes.
* curl: use 2TLS by defaultDaniel Stenberg2015-12-139-18/+27
| | | | | | | | | Make this the default for the curl tool (if built with HTTP/2 powers enabled) unless a specific HTTP version is requested on the command line. This should allow more users to get HTTP/2 powers without having to change anything.
* tests: Corrected copy and pasted comments from commit e643c5c908Steve Holme2015-12-0312-13/+25
|
* test947: Corrected typo in test nameSteve Holme2015-12-021-1/+1
|
* tests: Disable the OAUTHBEARER tests when using a non-default port numberSteve Holme2015-12-0212-0/+48
| | | | | | | | Tests 842, 843, 844, 845, 887, 888, 889, 890, 946, 947, 948 and 949 fail if a custom port number is specified via the -b option of runtests.pl. Suggested by: Kamil Dudka Bug: http://curl.haxx.se/mail/lib-2015-12/0003.html
* test1513: make sure the callback is only called onceDaniel Stenberg2015-11-242-1/+5
|