Dan Fandrich
38cd2d781f
Added test case 546 to check that subsequent FTP transfers work after a
...
failed one using the multi interface
2007-10-29 22:57:31 +00:00
Dan Fandrich
15feb8217f
Fixed the 2000-series tests so that the downloaded data is actually checked
2007-10-27 01:04:36 +00:00
Dan Fandrich
e8057241c6
Fixed the test case to create only a single test file, which is all the
...
test harness supports.
2007-10-26 20:19:49 +00:00
Dan Fandrich
43885493ea
Disable valgrind for this test to avoid the rlimit = soft rlimit problem
...
found by Michal Marek.
2007-10-25 21:49:45 +00:00
Dan Fandrich
1eac702c1a
Added test case 2004.
...
Disable valgrind in test case 1004 due to a libtool bug.
2007-10-25 21:04:51 +00:00
Patrick Monnerat
0678a51d3b
Allow test server to handle binary POSTs.
...
Tests 35, 544 545 added: binary data POSTs.
2007-10-25 19:40:05 +00:00
Daniel Stenberg
91e27ce755
Fixed a TFTP memory leak. Enabled test 2003 to verify this.
2007-10-25 07:47:38 +00:00
Dan Fandrich
65ed696625
Fixed the test TFTP server to support the >10000 test number notation
...
Added test cases 2002 and 2003 (the latter disabled for now)
2007-10-24 22:48:23 +00:00
Daniel Stenberg
3e3eaaada7
enable 2000 and 2001
2007-10-24 21:27:25 +00:00
Dan Fandrich
38649d1362
Added test cases 2000 and 2001 which test multiple protocols using the
...
same easy handle
Fixed the filecheck: make target to work outside the source tree
2007-10-24 19:40:07 +00:00
Dan Fandrich
2741f97a69
Fixed a couple of typos that messed up the tests.
2007-10-12 02:09:45 +00:00
Dan Fandrich
d7fbe07ee2
Added some <keywords> sections and use some key words more consistently.
2007-10-12 01:44:22 +00:00
Daniel Stenberg
6dd6b4d1fa
I enabled test 1009 and made the --local-port use a wide range to reduce the
...
risk of failures.
2007-10-04 21:26:26 +00:00
Daniel Stenberg
67d94514b0
Kim Rinnewitz reported that --local-port didn't work with TFTP transfers.
...
This happened because the tftp code always uncondionally did a bind()
without caring if one already had been done and then it failed. I wrote a
test case (1009) to verify this, but it is a bit error-prone since it will
have to pick a fixed local port number and since the tests are run on so
many different hosts in different situations I add it in disabled state.
2007-10-04 10:01:41 +00:00
Daniel Stenberg
119364741e
known bug #46 : chunked-encoded CONNECT responses from a http proxy now works.
...
Added test case 1008 to verify. Note that #47 is still there.
2007-10-02 10:21:36 +00:00
Daniel Stenberg
9ca2644429
Added test536 that was accidentally missing. I also wrote up a new makefile
...
target called 'filecheck' so that if you run 'make filecheck' in this directory
it'll check if the local files are also mentioned in the Makefile.am so that
they are properly included in release archives!
2007-09-30 22:58:24 +00:00
Daniel Stenberg
ec08e2f9f2
Alex Fishman reported a curl_easy_escape() problem that was made the
...
function do wrong on all input bytes that are >= 0x80 (decimal 128) due to a
signed / unsigned mistake in the code. I fixed it and added test case 543 to
verify.
2007-09-30 22:40:24 +00:00
Daniel Stenberg
fd4cf78f36
Philip Langdale provided the new CURLOPT_POST301 option for
...
curl_easy_setopt() that alters how libcurl functions when following
redirects. It makes libcurl obey the RFC2616 when a 301 response is received
after a non-GET request is made. Default libcurl behaviour is to change
method to GET in the subsequent request (like it does for response code 302
- because that's what many/most browsers do), but with this CURLOPT_POST301
option enabled it will do what the spec says and do the next request using
the same method again. I.e keep POST after 301.
The curl tool got this option as --post301
Test case 1011 and 1012 were added to verify.
2007-09-26 12:44:59 +00:00
Daniel Stenberg
a6315359d7
Max Katsev reported that when doing a libcurl FTP request with
...
CURLOPT_NOBODY enabled but not CURLOPT_HEADER, libcurl wouldn't do TYPE
before it does SIZE which makes it less useful. I walked over the code and
made it do this properly, and added test case 542 to verify it.
2007-09-26 12:00:01 +00:00
Daniel Stenberg
775f86cb5a
Immanuel Gregoire fixed KNOWN_BUGS #44 : --ftp-method nocwd did not handle
...
URLs ending with a slash properly (it should list the contents of that
directory). Test case 351 brought back and also test 1010 was added.
2007-09-24 21:47:35 +00:00
Dan Fandrich
4686adb433
Added variable substitution to the <verify><file> section.
...
Made a few more tests work remotely.
2007-09-20 20:39:17 +00:00
Dan Fandrich
0159636373
Use double quotes in command lines for consistency.
2007-09-18 20:41:20 +00:00
Dan Fandrich
4f067b1d1c
IPv6 is a required feature for these two tests, even if it's not obvious.
2007-09-18 17:41:04 +00:00
Dan Fandrich
ae60745e3e
Fixed the required server entry
2007-09-17 23:23:13 +00:00
Dan Fandrich
7f496d8c3f
Changed some FTP tests to validate the format of the PORT and EPRT commands
...
sent by curl, if not the addresses themselves.
2007-09-17 21:44:57 +00:00
Dan Fandrich
26f8de459a
Made the directory postprocessor more forgiving of input directory format
2007-09-17 17:22:46 +00:00
Daniel Stenberg
e04151ed76
Michal Marek made libcurl automatically append ";type=<a|i>" when using HTTP
...
proxies for FTP urls.
2007-09-15 21:14:12 +00:00
Dan Fandrich
05e4a3026d
Replaced 127.0.0.1 with %HOSTIP where possible
2007-09-14 19:32:31 +00:00
Daniel Stenberg
9e88343a17
Daniel S (12 September 2007)
...
- Bug report #1792649 (http://curl.haxx.se/bug/view.cgi?id=1792649 ) pointed
out a problem with doing an empty upload over FTP on a re-used connection.
I added test case 541 to reproduce it and to verify the fix.
- I noticed while writing test 541 that the FTP code wrongly did a CWD on the
second transfer as it didn't store and remember the "" path from the
previous transfer so it would instead CWD to the entry path as stored. This
worked, but did a superfluous command. Thus, test case 541 now also verifies
this fix.
2007-09-11 22:23:57 +00:00
Dan Fandrich
d030dfa6e2
Added test case 1007 to test permission problem when uploading with TFTP
...
(to validate bug #1790403 ).
2007-09-07 20:05:20 +00:00
Dan Fandrich
f6251734fc
Added more accurate error code returns from SFTP operations. Added test
...
case 615 to test an SFTP upload failure.
2007-08-30 23:03:59 +00:00
Dan Fandrich
9f44a95522
Renamed several libcurl error codes and options to make them more general
...
and allow reuse by multiple protocols. Several unused error codes were
removed. In all cases, macros were added to preserve source (and binary)
compatibility with the old names. These macros are subject to removal at
a future date, but probably not before 2009. An application can be
tested to see if it is using any obsolete code by compiling it with the
CURL_NO_OLDIES macro defined.
Documented some newer error codes in libcurl-error(3)
2007-08-30 20:34:57 +00:00
Daniel Stenberg
7cba40b218
Bug report #1779054 ( http://curl.haxx.se/bug/view.cgi?id=1779054 ) pointed
...
out that libcurl didn't deal with large responses from server commands, when
the single response was consisting of multiple lines but of a total size of
16KB or more. Dan Fandrich improved the ftp test script and provided test
case 1006 to repeat the problem, and I fixed the code to make sure this new
test case runs fine.
2007-08-24 14:00:42 +00:00
Dan Fandrich
975fafdc49
Added test case 1005 to test excessively-long replies spread out over
...
multiple lines (similar to test case 1003).
2007-08-23 23:25:47 +00:00
Dan Fandrich
abca03cf36
Added test1004 to validate a previous fix for a memory leak when an
...
empty proxy server is selected.
2007-08-23 17:35:00 +00:00
Daniel Stenberg
381e372939
Bug report #1779054 ( http://curl.haxx.se/bug/view.cgi?id=1779054 ) pointed
...
out that libcurl didn't deal with very long (>16K) FTP server response lines
properly. Starting now, libcurl will chop them off (thus the client app will
not get the full line) but survive and deal with them fine otherwise. Test
case 1003 was added to verify this.
2007-08-22 14:18:06 +00:00
Daniel Stenberg
014fe6971e
remove stupid comment since there's no content in this test case
2007-08-17 22:24:51 +00:00
Daniel Stenberg
3217809294
Robson Braga Araujo filed bug report #1776235
...
(http://curl.haxx.se/bug/view.cgi?id=1776235 ) about ftp requests with NOBODY
on a directory would do a "SIZE (null)" request. This is now fixed and test
case 1000 was added to verify.
2007-08-17 22:22:43 +00:00
Daniel Stenberg
dcf698dc74
some keywords for future stats/coverage checks
2007-08-17 22:17:23 +00:00
Daniel Stenberg
54117be639
Moved the 5320 and 5322 into the 1000-series instead which is a documented
...
range. They are about FTP but the 100-199 range is full.
2007-08-17 22:11:25 +00:00
Daniel Stenberg
5a79532aee
Song Ma provided a patch that cures a problem libcurl has when doing resume
...
HTTP PUT using Digest authentication. Test case 5320 and 5322 were also
added to verify the functionality.
2007-08-17 20:21:32 +00:00
Dan Fandrich
c7a66d5af4
There's no need to ignore the User-Agent for this test.
2007-08-09 03:28:16 +00:00
Daniel Stenberg
6f750f3b57
Dmitriy Sergeyev reported a regression: resumed file:// transfers broke
...
after 7.16.2. This is much due to the different treatment file:// gets
internally, but now I added test 231 to make it less likely to happen again
without us noticing!
2007-08-02 14:09:08 +00:00
Daniel Stenberg
4bbcc47f3f
Added test case 354 that makes a simple FTP retrieval without password, which
...
verifies the bug fix in #1757328 .
2007-07-22 10:08:59 +00:00
Daniel Stenberg
8ab495a088
test and verify curl -I on a single FTP file somewhat more than before
2007-07-21 21:49:23 +00:00
Daniel Stenberg
98b9349be7
make it do all three requests on the same connection
2007-07-16 21:44:46 +00:00
Daniel Stenberg
1da3d402f6
convert test case 540 to use a custom Host: header as well
2007-07-15 21:00:26 +00:00
Daniel Stenberg
15c8219340
Added test case 540 and lib540.c, the 'proxyauth.c' test app posted by Shmulik
...
Regev on the libcurl mailing list on 10 Jul 2007, converted to a test case.
2007-07-14 22:39:22 +00:00
Dan Fandrich
19631f5d5f
Force the time zone to GMT in the cookie tests in case the user is
...
using one of the so-called 'right' time zones that take into account
leap seconds, which causes the tests to fail (as reported by
Daniel Black in bug report #1745964 ).
2007-07-10 22:27:16 +00:00
James Housley
a8d6b40736
The previous commits changed the error code
2007-07-10 22:26:59 +00:00
Dan Fandrich
93bd512357
Fixed a curl memory leak reported by Song Ma with a modified version
...
of the patch he suggested. Added his test case as test289 to verify.
2007-07-10 22:23:16 +00:00
Daniel Stenberg
974fa1242a
Adjusted how libcurl treats HTTP 1.1 responses without content-lenth or
...
chunked encoding (that also lacks "Connection: close"). It now simply
assumes that the connection WILL be closed to signal the end, as that is how
RFC2616 section 4.4 point #5 says we should behave.
2007-06-25 13:58:14 +00:00
Daniel Stenberg
a1b650ad7b
Gerrit Bruchhuser pointed out a warning that the Intel(R) Thread Checker
...
tool reports and it was indeed a legitimate one and it is one fixed. It was
a use of a share without doing the proper locking first.
2007-06-21 14:23:38 +00:00
Daniel Stenberg
fc3c5dae87
and fix another flaw in the singlecwd case when we get ftp://site.com/, also
...
from the #1739100 bug report
2007-06-19 12:33:28 +00:00
Daniel Stenberg
cc26cc5dcd
Test listing of root dir with the three ftp-methods. KNOWN_BUGS #44 make me
...
disable test 351 by default by I add the test case anyway to make it easier
to work on this problem in the future.
2007-06-18 21:04:05 +00:00
Dan Fandrich
873d95a34c
Incorporated Daniel Black's test706 and test707 SOCKS test cases.
2007-06-08 17:21:40 +00:00
Dan Fandrich
345ffd1163
Cleaned up SOCKS tests. Use a magic port number instead of killserver
...
to do nonlistening server tests, like other tests.
2007-06-07 20:14:00 +00:00
Daniel Stenberg
e86dfd9688
added 703: a socks5 version of 702
2007-06-05 13:52:34 +00:00
Daniel Stenberg
a466b31574
Daniel Black's test suite fixes and initial test cases for SOCKS4/5 using
...
openssh
2007-06-05 13:50:59 +00:00
Dan Fandrich
ea43bb013b
Added support for quote commands before a transfer using SFTP and test
...
case 614.
Allow SFTP quote commands chmod, chown, chgrp to set a value of 0.
2007-05-15 00:28:50 +00:00
Dan Fandrich
b0a4c992e7
Added SFTP directory listing test case 613.
2007-05-14 22:03:42 +00:00
Dan Fandrich
85707460e5
Added FTPS upload tests 408 and 409.
2007-05-10 20:03:20 +00:00
Dan Fandrich
ed998270aa
Added FTPS test cases 406 and 407
2007-05-08 22:14:30 +00:00
Dan Fandrich
5187faeeb9
Improved the test harness to allow running test servers on other than
...
the default port numbers, allowing more than one test suite to run
simultaneously on the same host.
2007-04-30 20:15:33 +00:00
Dan Fandrich
1228ec9fbb
Fixed some tests to stop hard-coding the port number.
2007-04-30 19:05:48 +00:00
Dan Fandrich
6a35841b2e
Added tests 610-612 to test more SFTP post-quote commands.
2007-04-23 23:00:38 +00:00
Dan Fandrich
3398eca7c3
Changed another nonexistent host name to be under the haxx.se domain
...
to guarantee against it ever being valid.
2007-04-23 01:51:02 +00:00
Dan Fandrich
ae3d5949b8
Various test file cleanups, including using <servercmd> instead of writing
...
directly to ftpserver.cmd and removing unneeded empty sections.
2007-04-18 20:22:01 +00:00
Dan Fandrich
66fc5498d2
Added test cases 296, 297 and 298 to test --ftp-method handling
2007-04-18 06:30:28 +00:00
Dan Fandrich
71a0d50f48
Added test cases 294 and 295 to test --ftp-account handling
2007-04-13 20:59:15 +00:00
Yang Tse
8d2a0fe85b
Fix test case 534 which started to fail 2007-04-13 due to the existance
...
of a new host on the net with the same silly domain the test was using
for a host which was supposed not to exist.
2007-04-13 11:35:19 +00:00
Dan Fandrich
de17f4436e
Changed error return codes to match update code.
2007-04-09 18:24:56 +00:00
Dan Fandrich
c1ab3e2d59
Enabled the ssh tests 600-609.
2007-04-05 19:28:33 +00:00
Dan Fandrich
0969a96732
Whoops--didn't mean to enable the ssh tests quite yet.
2007-04-04 04:57:40 +00:00
Dan Fandrich
27d2d78059
Added more SSH tests (left disabled for now).
2007-04-04 00:48:37 +00:00
Dan Fandrich
ef10eaeb29
Added scp and sftp nonexistent file retrieval tests, but leave them
...
disabled for now.
2007-04-01 06:28:12 +00:00
Dan Fandrich
f8d78d57a7
Disable the SSH tests until the libssh2 bugs that causes test hangs
...
are sorted out.
2007-03-31 20:00:40 +00:00
Dan Fandrich
7fd154f094
Fixed some typos in the comments.
2007-03-30 22:07:48 +00:00
Dan Fandrich
a209c32bf3
Resurrected old FTPS error tests 402 and 403 as 404 and 405.
2007-03-30 22:04:14 +00:00
Dan Fandrich
40981286ea
Added HTTP --max-filesize tests and FTPS CCC failure test.
2007-03-30 18:50:55 +00:00
Dan Fandrich
ffb11ad5c6
Don't tear down the ftp connection if the maximum filesize was exceeded
...
and added tests 290 and 291 to check.
2007-03-30 01:13:47 +00:00
Dan Fandrich
fbb1e49215
Added FTP-SSL failure test 402
2007-03-30 00:08:41 +00:00
Dan Fandrich
c26320d94f
Added ftps upload test 401
2007-03-29 22:50:23 +00:00
Dan Fandrich
c563a53c16
Eliminated extra / in scp/sftp URLs.
2007-03-29 19:19:06 +00:00
Dan Fandrich
2166645ce4
Added SFTP and SCP upload tests in test602 & test603
2007-03-26 19:23:00 +00:00
Dan Fandrich
844f5b6b45
Added test600 and test601, SFTP and SCP file retrieval tests.
2007-03-26 18:04:05 +00:00
Dan Fandrich
0dd1219668
Fixed a memory leak when specifying a proxy with a file: URL and added
...
test case 288 to verify it.
2007-03-24 02:15:20 +00:00
Dan Fandrich
a20a6f67c5
Fixed the test case to use a truly invalid urlglob range.
2007-03-16 04:34:53 +00:00
Dan Fandrich
e12d46ac50
Updated the test harness to add a new "crypto" feature check and updated the
...
appropriate test case to use it. For now, this is treated the same as the
"SSL" feature because curl doesn't list it separately.
2007-03-09 23:39:42 +00:00
Dan Fandrich
1962ebf8e7
Updated the test harness to check for protocol support before running each
...
test, fixing KNOWN_BUGS #11 . Fixed some tests to more accurately specify
their required servers and features.
2007-03-09 21:01:39 +00:00
Dan Fandrich
0f0540d00b
Added SSL as a required feature for test case 400.
2007-03-08 19:50:32 +00:00
Dan Fandrich
1bfa7dfe39
Added test infrastructure to support basic FTPS tests. This currently
...
supports only ftps:// URLs with --ftp-ssl-control specified, which
implicitly encrypts the control channel but not the data channels. That
allows stunnel to be used with an unmodified ftp server in exactly the
same way that the test https server is set up.
Added test case 400 as a basic FTPS test.
2007-03-08 02:38:49 +00:00
Yang Tse
e5f8e5e57a
stricter newline policy
2007-03-03 05:16:57 +00:00
Yang Tse
bfd6474f6b
stricter newline policy
2007-03-03 02:06:44 +00:00
Daniel Stenberg
f19d333ef6
- Ravi Pratap provided work on libcurl making pipelining more robust and
...
fixing some bugs:
o Don't mix GET and POST requests in a pipeline
o Fix the order in which requests are dispatched from the pipeline
o Fixed several curl bugs with pipelining when the server is returning
chunked encoding:
* Added states to chunked parsing for final CRLF
* Rewind buffer after parsing chunk with data remaining
* Moved chunked header initializing to a spot just before receiving
headers
2007-02-21 21:59:40 +00:00
Daniel Stenberg
4efa0d9f68
ftp@example.com is now the new anonymous FTP password. I opted for 'ftp' on
...
the left side of @ to make it short(er).
2007-02-13 22:50:16 +00:00
Yang Tse
9b6474378a
Year 2038 has its own problems (32 bit integer overflow).
...
So cookie expiration date is lowered to expire at most in 2035.
2007-02-05 02:38:25 +00:00
Yang Tse
f71c8c7d84
fix leftover updating cookie expiration date
2007-02-02 11:49:15 +00:00
Yang Tse
68f3c2adca
reported in bug: #1566077 the former URL mentioned in the generated cookie
...
jar has died and we now instead point out our own version of that
2007-02-02 02:12:34 +00:00
Yang Tse
2a8e2edf83
fix test case 62 which was failing due to cookies expiring 1 Feb 2007
2007-02-02 01:36:08 +00:00