summaryrefslogtreecommitdiff
path: root/tests/data
Commit message (Collapse)AuthorAgeFilesLines
* http error response: stop sending when error is receivedDaniel Stenberg2011-07-204-3/+293
| | | | | | | | | | | | | | When libcurl has said to the server that there's a POST or PUT coming (with a content-length and all) it has to either deliver that amount of data or it needs to close the connection before trying a second request. Adds test case 1129, 1130 and 1131 The bug report is about when used with 100-continue, but the change is more generic. Bug: http://curl.haxx.se/mail/lib-2011-06/0191.html Reported by: Steven Parkes
* test2005: require a debug buildDaniel Stenberg2011-07-191-0/+1
|
* test2005: verify ntlm single-signonMandy Wu2011-07-182-1/+121
|
* Added a leap second test to test517Dan Fandrich2011-06-231-0/+1
|
* parsedate: detect more invalid dates betterDaniel Stenberg2011-06-231-0/+5
|
* [pop3] remove extra space in LIST commandOri Avtalion2011-06-212-2/+2
| | | | Some servers, e.g. mail.bezeqint.net:110, consider it a syntax error
* CURLFORM_STREAM: acknowledge CURLFORM_FILENAMEDaniel Stenberg2011-06-171-3/+8
| | | | | | | | | | | | | The CURLFORM_STREAM is documented to only insert a file name (and thus look like a file upload) in the part if CURLFORM_FILENAME is set, but in reality it always inserted a filename="" and if CURLFORM_FILENAME wasn't set, it would insert insert rubbish (or possibly crash). This is now fixed to work as documented, and test 554 has been extended to verify this. Reported by: Sascha Swiercy Bug: http://curl.haxx.se/mail/lib-2011-06/0070.html
* curl_formget: fix FILE * leakDaniel Stenberg2011-06-131-0/+3
| | | | | | | | | | Properly deal with the fact that the last fread() call most probably is a short read, and when using callbacks in fact all calls can be short reads. No longer consider a file read done until it returns a 0 from the read function. Reported by: Aaron Orenstein Bug: http://curl.haxx.se/mail/lib-2011-06/0048.html
* Added http as a dependency of test 1308Dan Fandrich2011-06-111-0/+1
|
* test1309: added to the distDaniel Stenberg2011-06-121-1/+1
|
* splay: add unit testsDaniel Stenberg2011-06-101-0/+1457
| | | | | The test code that was #ifdef'ed in the code was converted into unit tests in test case 1309. I also removed the #if 0'ed code from splay.c
* unit test formpost: added test case 1308Daniel Stenberg2011-06-102-2/+29
| | | | | | This is a few first rather basic tests of curl_formadd() and curl_formget(). Should serve as building blocks to add more variations to the test.
* HTTP time condition: force closure for 200 OKDaniel Stenberg2011-06-072-3/+88
| | | | | | | | | When a time condition isn't met, so that no body is delivered to the application even though a 2xx response is being read from the server, we must close the connection to avoid a re-use of the connection to be completely tricked. Added test 1128 to verify.
* tests: verify OPEN/CLOSESOCKETFUNCTIONDaniel Stenberg2011-05-183-1/+130
| | | | Test 585 and 586 were added. Using a modified lib500.c
* tests: added HTTP If-Modified-Since testsDaniel Stenberg2011-05-133-71/+186
| | | | | | | Added test 1126 and 1127 to verify curl's behaviour when If-Modified-Since is used and a 200 is returned. The list of test cases in Makefile.am is now sorted numerically.
* proxy: allow socks:// prefix in proxy stringDaniel Stenberg2011-04-282-1/+62
| | | | Inspired by a patch from OB.Conseil. Added test case 708 to verify.
* multi-socks: fix connect to proxyDaniel Stenberg2011-04-282-6/+2
| | | | | | | | | | When connecting to a socks or similar proxy we do the proxy handshake at once when we know the TCP connect is completed and we only consider the "connection" complete after the proxy handshake. This fixes test 564 which is now no longer considered disabled. Reported by: Dmitri Shubin Bug: http://curl.haxx.se/mail/lib-2011-04/0127.html
* Fixed closing test tagDan Fandrich2011-04-201-1/+1
|
* transfer-encoding: added new option and cmdlineDaniel Stenberg2011-04-184-5/+5
| | | | | | | | | | | Added CURLOPT_TRANSFER_ENCODING as the option to set to request Transfer Encoding in HTTP requests (if built zlib enabled). I also renamed CURLOPT_ENCODING to CURLOPT_ACCEPT_ENCODING (while keeping the old name around) to reduce the confusion when we have to encoding options for HTTP. --tr-encoding is now the new command line option for curl to request this, and thus I updated the test cases accordingly.
* TE: do the Connection: headerDaniel Stenberg2011-04-185-1/+74
| | | | | | | 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:.
* test1124: verify gzip AND chunked transfer-encodingDaniel Stenberg2011-04-182-1/+69
|
* HTTP: add support for gzip and deflate Transfer-EncodingDaniel Stenberg2011-04-183-1/+269
| | | | | | | | | | 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.
* HTTP pipelining: Fix handling of zero-length responsesChris Smowton2011-04-072-1/+103
| | | | | | Also add test case 584 for the same Bug: http://curl.haxx.se/bug/view.cgi?id=3214223
* Added two more POP3 testsDan Fandrich2011-03-183-1/+89
|
* Added support for LISTing a single POP3 messageDan Fandrich2011-03-176-1/+177
| | | | | | Added tests for a number of POP3 LIST operations, including one that shows a curl problem when listing no messages, so is disabled.
* test 582: enabled againDaniel Stenberg2011-03-131-4/+0
| | | | Commit ca37692bf43b5ef should now hopefully make it run
* Revert "test582: enabled"Daniel Stenberg2011-03-131-0/+4
| | | | This reverts commit b8478187406cf625c9d0f10b45a082221130cc92.
* test583: verify early SSH multi remove handleDaniel Stenberg2011-03-132-1/+44
| | | | | | 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.
* test582: enabledDaniel Stenberg2011-03-121-4/+0
|
* tests: phase out haxx.seDaniel Stenberg2011-03-0917-78/+78
| | | | | | 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.
* test523: avoid using haxx.seDaniel Stenberg2011-03-091-3/+3
| | | | | ... since search engines find what they think is a URL in this, they hammer www.haxx.se on this port!
* sftp-multi: test 582 addedHenry Ludemann2011-03-083-1/+51
| | | | | | | | 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.
* Moved test 577 into the unit test framework as test 1307Dan Fandrich2011-03-043-45/+29
|
* Added unit test 1306 so tests 558 & 559 are now fully replacedDan Fandrich2011-03-043-2/+36
|
* Converted tests 558 & 559 to use the unit test framework as 1305Dan Fandrich2011-03-044-90/+28
| | | | | Test 558 was just a subset of 559 which is something that can be easily added later.
* tests: Cleaned up netrc testing.Julien Chaffraix2011-02-206-24/+6
| | | | | | Removed the "netrc_debug" keyword replaced with --netrc-file additions. Removed the debug code from Curl_parsenetrc as it is superseeded by --netrc-file.
* netrc: Enable setting up the filename in unit tests.Julien Chaffraix2011-02-101-1/+0
| | | | | Unset the environment variable so that we can specify different filenames in the unit test.
* test1304: Added some unit tests for Curl_parsenetrc.Julien Chaffraix2011-02-102-1/+33
| | | | Moved some definitons into the header file so that we can reuse them.
* test: add test 580 to the distDaniel Stenberg2011-01-281-1/+1
|
* tests: more multiple headers checksDaniel Stenberg2011-01-253-1/+108
|
* HTTP: memory leak on multiple Location:Daniel Stenberg2011-01-251-0/+58
| | | | | | | | | 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
* TLS-SRP: support added when using GnuTLSQuinn Slack2011-01-196-1/+228
|
* tests: <info> tag correctionsDaniel Stenberg2011-01-042-2/+2
|
* unittest: 1303 tests Curl_timeleftDaniel Stenberg2011-01-042-1/+28
| | | | | I came up with 33 different ways to call it and verify that it returns the correct return code.
* tests: add 1302 to the packageDaniel Stenberg2011-01-041-1/+1
|
* unittest: test base64 encode/decodeDaniel Stenberg2011-01-041-0/+26
|
* unittest: verify curl_strequalDaniel Stenberg2011-01-042-1/+27
|
* unittests: a dedicated feature in testsDaniel Stenberg2011-01-031-8/+4
| | | | | | 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.
* unittest: framework for unit-testingDaniel Stenberg2011-01-032-1/+31
| | | | | This is the first approach at doing fairly clean and easy to write and debug unit tests.
* cookies: tricked dotcounter fixedDaniel Stenberg2010-12-231-0/+1
| | | | | | | | | | 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.