aboutsummaryrefslogtreecommitdiff
path: root/tests/data
AgeCommit message (Collapse)Author
2011-04-18TE: do the Connection: headerDaniel Stenberg
When TE: is inserted in the request, we must add a "Connection: TE" as well to be HTTP 1.1 compliant. If a custom Connection: header is passed in, we must use that and only append TE to it. Test case 1125 verifies TE: + custom Connection:.
2011-04-18test1124: verify gzip AND chunked transfer-encodingDaniel Stenberg
2011-04-18HTTP: add support for gzip and deflate Transfer-EncodingDaniel Stenberg
Transfer-Encoding differs from Content-Encoding in a few subtle ways, but primarily it concerns the transfer only and not the content so when discovered to be compressed we know we have to uncompress it. There will only arrive compressed transfers in a response after we have requested them with the appropriate TE: header. Test case 1122 and 1123 verify.
2011-04-07HTTP pipelining: Fix handling of zero-length responsesChris Smowton
Also add test case 584 for the same Bug: http://curl.haxx.se/bug/view.cgi?id=3214223
2011-03-18Added two more POP3 testsDan Fandrich
2011-03-17Added support for LISTing a single POP3 messageDan Fandrich
Added tests for a number of POP3 LIST operations, including one that shows a curl problem when listing no messages, so is disabled.
2011-03-13test 582: enabled againDaniel Stenberg
Commit ca37692bf43b5ef should now hopefully make it run
2011-03-13Revert "test582: enabled"Daniel Stenberg
This reverts commit b8478187406cf625c9d0f10b45a082221130cc92.
2011-03-13test583: verify early SSH multi remove handleDaniel Stenberg
This test case is meant to verify that the logic in commit 60172a0446bbe3f8b actually works. This test failed for me before that change and it works after it.
2011-03-12test582: enabledDaniel Stenberg
2011-03-09tests: phase out haxx.seDaniel Stenberg
Instead of using haxx.se as a fixed magic host name in lots of tests, this is a first step to move toward the generic example.com host instead.
2011-03-09test523: avoid using haxx.seDaniel Stenberg
... since search engines find what they think is a URL in this, they hammer www.haxx.se on this port!
2011-03-08sftp-multi: test 582 addedHenry Ludemann
Add test 582 for uploading a file using sftp and the multi interface. (Patch and test slightly tweaked by Daniel Stenberg) Initially marked as disabled until it is fixed in the source.
2011-03-04Moved test 577 into the unit test framework as test 1307Dan Fandrich
2011-03-04Added unit test 1306 so tests 558 & 559 are now fully replacedDan Fandrich
2011-03-04Converted tests 558 & 559 to use the unit test framework as 1305Dan Fandrich
Test 558 was just a subset of 559 which is something that can be easily added later.
2011-02-20tests: Cleaned up netrc testing.Julien Chaffraix
Removed the "netrc_debug" keyword replaced with --netrc-file additions. Removed the debug code from Curl_parsenetrc as it is superseeded by --netrc-file.
2011-02-10netrc: Enable setting up the filename in unit tests.Julien Chaffraix
Unset the environment variable so that we can specify different filenames in the unit test.
2011-02-10test1304: Added some unit tests for Curl_parsenetrc.Julien Chaffraix
Moved some definitons into the header file so that we can reuse them.
2011-01-28test: add test 580 to the distDaniel Stenberg
2011-01-25tests: more multiple headers checksDaniel Stenberg
2011-01-25HTTP: memory leak on multiple Location:Daniel Stenberg
The HTTP parser allocated memory on each received Location: header without properly freeing old data. Starting now, the code only considers the first Location: header and will blissfully ignore subsequent ones. Bug: http://curl.haxx.se/bug/view.cgi?id=3165129 Reported by: Martin Lemke
2011-01-19TLS-SRP: support added when using GnuTLSQuinn Slack
2011-01-04tests: <info> tag correctionsDaniel Stenberg
2011-01-04unittest: 1303 tests Curl_timeleftDaniel Stenberg
I came up with 33 different ways to call it and verify that it returns the correct return code.
2011-01-04tests: add 1302 to the packageDaniel Stenberg
2011-01-04unittest: test base64 encode/decodeDaniel Stenberg
2011-01-04unittest: verify curl_strequalDaniel Stenberg
2011-01-03unittests: a dedicated feature in testsDaniel Stenberg
The test runner script now knows if unittests can run and the unit test setup file says it is one. I also made runtests.pl deal with no <command> tag set, so that the description file can get even simpler.
2011-01-03unittest: framework for unit-testingDaniel Stenberg
This is the first approach at doing fairly clean and easy to write and debug unit tests.
2010-12-23cookies: tricked dotcounter fixedDaniel Stenberg
Providing multiple dots in a series in the domain field (domain=..com) could trick the cookie engine to wrongly accept the cookie believing it to be fine. Since the tailmatching would then match all .com sites, the cookie would then be sent to all of them. The code now requires at least one letter between each dot for them to be counted. Edited test case 61 to verify this.
2010-12-22SMTP tests: updated MAIL FROM useDaniel Stenberg
They were all wrong previously since none used the <brackets> they should for MAIL FROM. Now libcurl adds them itself if the app doesn't so they end up wrong less easy.
2010-11-19Check for errors while preprocessing curl.h in test 1119Dan Fandrich
This showed a problem when running the test out-of-tree, so an include path is now being added to pick up the generated curlbuild.h file.
2010-11-10test1120: verify FTP response 421Daniel Stenberg
curl mustn't try to use the control connection after the 421 is received
2010-11-08ftp: close connection as soon as ABOR has been sentKamil Dudka
... and do not send ABOR unless really necessary. Bug: https://bugzilla.redhat.com/649347 Reported by: Simon H.
2010-11-03test1119: verify symbols-in-versionsDaniel Stenberg
2010-10-29ftp: prevent server from hanging on closed data connectionKamil Dudka
Some FTP servers (e.g. Pure-ftpd) end up hanging if we close the data connection before transferring all the requested data. If we send ABOR in that case, it prevents the server from hanging. Bug: https://bugzilla.redhat.com/643656 Reported by: Pasi Karkkainen, Patrick Monnerat
2010-10-19URL-parsing: consider ? a dividerDaniel Stenberg
The URL parser got a little stricter as it now considers a ? to be a host name divider so that the slightly sloppier URLs work too. The problem that made me do this change was the reported problem with an URL like: www.example.com?email=name@example.com This form of URL is not really a legal URL (due to the missing slash after the host name) but is widely accepted by all major browsers and libcurl also already accepted it, it was just the '@' letter that triggered the problem now. The side-effect of this change is that now libcurl no longer accepts the ? letter as part of user-name or password when given in the URL, which it used to accept (and is tested in test 191). That letter is however mentioned in RFC3986 to be required to be percent encoded since it is used as a divider. Bug: http://curl.haxx.se/bug/view.cgi?id=3090268
2010-10-14Fixed the IPv6 host address in test1203Dan Fandrich
Reported by: Christian Weisgerber Bug: http://curl.haxx.se/bug/view.cgi?id=3087479
2010-10-11test: urlglob error messages have no extra newline anymoreDaniel Stenberg
2010-10-02HTTP: remove special case for 416Daniel Stenberg
It was pointed out that the special case libcurl did for 416 was incorrect and wrong. 416 is not really different to other errors so the response body must be handled like for other errors/http responses. Reported by: Chris Smowton Bug: http://curl.haxx.se/bug/view.cgi?id=3076808
2010-10-02sws: Added writedelay HTTP server commandDan Fandrich
This delays between write operations, hopefully making it easier to spot problems where libcurl doesn't flush the socket properly before waiting for the next response.
2010-09-29Renamed test1204 to test1117 to move it into the normal rangeDan Fandrich
2010-09-28curl_easy_escape: don't escape "unreserved" charactersDaniel Stenberg
According to RFC3986 section 2.3 the letters -, ., _ and ~ should not be percent-encoded. Reported by: Miguel Diaz Bug: http://curl.haxx.se/mail/lib-2010-09/0227.html
2010-09-27Added test case 1204 to test HTTP range failureDan Fandrich
This is an attempt to reproduce bug #3076808
2010-09-27parsedate: allow time specified without secondsDaniel Stenberg
The date format in RFC822 allows that the seconds part of HH:MM:SS is left out, but this function didn't allow it. This change also includes a modified test case that makes sure that this now works. Reported by: Matt Ford Bug: http://curl.haxx.se/bug/view.cgi?id=3076529
2010-09-09test565: Don't hardcode IP:PORTTor Arntsen
Use %HOSTIP:%HTTPPORT instead of 127.0.0.1:8990 so that verification works if the baseport change option is used when executing runtests.pl.
2010-08-30Added proxy keyword to allow skipping test in proxyless configsDan Fandrich
2010-08-25Tweaked some test data filesDan Fandrich
Fixed some issues that caused xmllint failures, added features and keywords, fixed some quotes and removed some <strip> sections that unnecessarily limited test checking.
2010-08-25gopher tests: use sws and adjusted to more standard styleDaniel Stenberg