diff --git a/tests/data/DISABLED b/tests/data/DISABLED index d18bc7b278e42d7284ed4c8f5ef3bb08e6df6ca8..60c10b094b3d6cdf61d4501bffedd0b12adb0c40 100644 --- a/tests/data/DISABLED +++ b/tests/data/DISABLED @@ -25,3 +25,23 @@ 1338 1339 # +1370 +1371 +1385 +1393 +# +1368 +1369 +1379 +1380 +1381 +1382 +1383 +1384 +1387 +1388 +1389 +1390 +1391 +1392 +# diff --git a/tests/data/Makefile.am b/tests/data/Makefile.am index e48a1681268e2dfa63c28ece087044b33d72faf1..7408547dc739c774a048945eb20a7dca1a5b6c87 100644 --- a/tests/data/Makefile.am +++ b/tests/data/Makefile.am @@ -87,7 +87,10 @@ test1331 test1332 test1333 test1334 test1335 test1336 test1337 test1338 \ test1339 test1340 test1341 test1342 test1343 test1344 test1345 test1346 \ test1347 test1348 test1349 test1350 test1351 test1352 test1353 test1354 \ test1355 test1356 test1357 test1358 test1359 test1360 test1361 test1362 \ -test1363 \ +test1363 test1364 test1365 test1366 test1367 test1368 test1369 test1370 \ +test1371 test1372 test1373 test1374 test1375 test1376 test1377 test1378 \ +test1379 test1380 test1381 test1382 test1383 test1384 test1385 test1386 \ +test1387 test1388 test1389 test1390 test1391 test1392 test1393 \ test1400 test1401 test1402 test1403 test1404 test1405 test1406 test1407 \ test2000 test2001 test2002 test2003 test2004 diff --git a/tests/data/test1364 b/tests/data/test1364 new file mode 100644 index 0000000000000000000000000000000000000000..fcdee484adc20eb46cc63b403af3f7a3f0e6e426 --- /dev/null +++ b/tests/data/test1364 @@ -0,0 +1,71 @@ +<testcase> +<info> +<keywords> +HTTP +HTTP GET +</keywords> +</info> + +# +<reply> +<data nocheck="yes"> +HTTP/1.1 200 OK +Date: Thu, 09 Nov 2010 14:49:00 GMT +Server: test-server/fake +Content-Length: 6 +Connection: close +Content-Type: text/html + +12345 +</data> +</reply> + +# +# Client-side +<client> +<server> +http +</server> +<name> +HTTP GET -o fname without Content-Disposition, -D file +</name> +<command option="no-output,no-include"> +http://%HOSTIP:%HTTPPORT/1364 -o log/outfile1364 -D log/heads1364 +</command> +<postcheck> +perl %SRCDIR/libtest/notexists.pl log/1364 +</postcheck> +</client> + +# +# Verify data after the test has been "shot" +<verify> +<strip> +^User-Agent:.* +</strip> +<protocol> +GET /1364 HTTP/1.1 +Host: %HOSTIP:%HTTPPORT +Accept: */* + +</protocol> + +<file1 name="log/outfile1364"> +12345 +</file1> + +<file2 name="log/heads1364"> +HTTP/1.1 200 OK +Date: Thu, 09 Nov 2010 14:49:00 GMT +Server: test-server/fake +Content-Length: 6 +Connection: close +Content-Type: text/html + +</file2> + +<file3 name="log/stdout1364"> +</file3> + +</verify> +</testcase> diff --git a/tests/data/test1365 b/tests/data/test1365 new file mode 100644 index 0000000000000000000000000000000000000000..ee13165e642a8fb25cace3898f2788ff372c044d --- /dev/null +++ b/tests/data/test1365 @@ -0,0 +1,68 @@ +<testcase> +<info> +<keywords> +HTTP +HTTP GET +</keywords> +</info> + +# +<reply> +<data nocheck="yes"> +HTTP/1.1 200 OK +Date: Thu, 09 Nov 2010 14:49:00 GMT +Server: test-server/fake +Content-Length: 6 +Connection: close +Content-Type: text/html + +12345 +</data> +</reply> + +# +# Client-side +<client> +<server> +http +</server> +<name> +HTTP GET -o fname without Content-Disposition, -D stdout +</name> +<command option="no-output,no-include"> +http://%HOSTIP:%HTTPPORT/1365 -o log/outfile1365 -D - +</command> +<postcheck> +perl %SRCDIR/libtest/notexists.pl log/1365 +</postcheck> +</client> + +# +# Verify data after the test has been "shot" +<verify> +<strip> +^User-Agent:.* +</strip> +<protocol> +GET /1365 HTTP/1.1 +Host: %HOSTIP:%HTTPPORT +Accept: */* + +</protocol> + +<file1 name="log/outfile1365"> +12345 +</file1> + +<file2 name="log/stdout1365"> +HTTP/1.1 200 OK +Date: Thu, 09 Nov 2010 14:49:00 GMT +Server: test-server/fake +Content-Length: 6 +Connection: close +Content-Type: text/html + +</file2> + +</verify> +</testcase> diff --git a/tests/data/test1366 b/tests/data/test1366 new file mode 100644 index 0000000000000000000000000000000000000000..d8e05abfe92a6e9e3f935c36615e259cd126b98c --- /dev/null +++ b/tests/data/test1366 @@ -0,0 +1,73 @@ +<testcase> +<info> +<keywords> +HTTP +HTTP GET +</keywords> +</info> + +# +<reply> +<data nocheck="yes"> +HTTP/1.1 200 OK +Date: Thu, 09 Nov 2010 14:49:00 GMT +Server: test-server/fake +Content-Length: 6 +Connection: close +Content-Type: text/html +Content-Disposition: filename=name1366; charset=funny; option=strange + +12345 +</data> +</reply> + +# +# Client-side +<client> +<server> +http +</server> +<name> +HTTP GET -o fname and Content-Disposition, -D file +</name> +<command option="no-output,no-include"> +http://%HOSTIP:%HTTPPORT/1366 -o log/outfile1366 -D log/heads1366 +</command> +<postcheck> +perl %SRCDIR/libtest/notexists.pl log/1366 log/name1366 +</postcheck> +</client> + +# +# Verify data after the test has been "shot" +<verify> +<strip> +^User-Agent:.* +</strip> +<protocol> +GET /1366 HTTP/1.1 +Host: %HOSTIP:%HTTPPORT +Accept: */* + +</protocol> + +<file1 name="log/outfile1366"> +12345 +</file1> + +<file2 name="log/heads1366"> +HTTP/1.1 200 OK +Date: Thu, 09 Nov 2010 14:49:00 GMT +Server: test-server/fake +Content-Length: 6 +Connection: close +Content-Type: text/html +Content-Disposition: filename=name1366; charset=funny; option=strange + +</file2> + +<file3 name="log/stdout1366"> +</file3> + +</verify> +</testcase> diff --git a/tests/data/test1367 b/tests/data/test1367 new file mode 100644 index 0000000000000000000000000000000000000000..fcb23f5808d5bd02fada3fc25ffeab096bf496d7 --- /dev/null +++ b/tests/data/test1367 @@ -0,0 +1,70 @@ +<testcase> +<info> +<keywords> +HTTP +HTTP GET +</keywords> +</info> + +# +<reply> +<data nocheck="yes"> +HTTP/1.1 200 OK +Date: Thu, 09 Nov 2010 14:49:00 GMT +Server: test-server/fake +Content-Length: 6 +Connection: close +Content-Type: text/html +Content-Disposition: filename=name1367; charset=funny; option=strange + +12345 +</data> +</reply> + +# +# Client-side +<client> +<server> +http +</server> +<name> +HTTP GET -o fname and Content-Disposition, -D stdout +</name> +<command option="no-output,no-include"> +http://%HOSTIP:%HTTPPORT/1367 -o log/outfile1367 -D - +</command> +<postcheck> +perl %SRCDIR/libtest/notexists.pl log/1367 log/name1367 +</postcheck> +</client> + +# +# Verify data after the test has been "shot" +<verify> +<strip> +^User-Agent:.* +</strip> +<protocol> +GET /1367 HTTP/1.1 +Host: %HOSTIP:%HTTPPORT +Accept: */* + +</protocol> + +<file1 name="log/outfile1367"> +12345 +</file1> + +<file2 name="log/stdout1367"> +HTTP/1.1 200 OK +Date: Thu, 09 Nov 2010 14:49:00 GMT +Server: test-server/fake +Content-Length: 6 +Connection: close +Content-Type: text/html +Content-Disposition: filename=name1367; charset=funny; option=strange + +</file2> + +</verify> +</testcase> diff --git a/tests/data/test1368 b/tests/data/test1368 new file mode 100644 index 0000000000000000000000000000000000000000..37f058c2294c3ec55d9387c4d6c676b536f010f2 --- /dev/null +++ b/tests/data/test1368 @@ -0,0 +1,72 @@ +<testcase> +<info> +<keywords> +HTTP +HTTP GET +-J +</keywords> +</info> + +# +<reply> +<data nocheck="yes"> +HTTP/1.1 200 OK +Date: Thu, 09 Nov 2010 14:49:00 GMT +Server: test-server/fake +Content-Length: 6 +Connection: close +Content-Type: text/html + +12345 +</data> +</reply> + +# +# Client-side +<client> +<server> +http +</server> +<name> +HTTP GET -o fname -J without Content-Disposition, -D file +</name> +<command option="no-output,no-include"> +http://%HOSTIP:%HTTPPORT/1368 -J -o log/outfile1368 -D log/heads1368 +</command> +<postcheck> +perl %SRCDIR/libtest/notexists.pl log/1368 +</postcheck> +</client> + +# +# Verify data after the test has been "shot" +<verify> +<strip> +^User-Agent:.* +</strip> +<protocol> +GET /1368 HTTP/1.1 +Host: %HOSTIP:%HTTPPORT +Accept: */* + +</protocol> + +<file1 name="log/outfile1368"> +12345 +</file1> + +<file2 name="log/heads1368"> +HTTP/1.1 200 OK +Date: Thu, 09 Nov 2010 14:49:00 GMT +Server: test-server/fake +Content-Length: 6 +Connection: close +Content-Type: text/html + +</file2> + +<file3 name="log/stdout1368"> +</file3> + +</verify> +</testcase> diff --git a/tests/data/test1369 b/tests/data/test1369 new file mode 100644 index 0000000000000000000000000000000000000000..9b272e276da6af49c79e366fd80bc8c12e696865 --- /dev/null +++ b/tests/data/test1369 @@ -0,0 +1,69 @@ +<testcase> +<info> +<keywords> +HTTP +HTTP GET +-J +</keywords> +</info> + +# +<reply> +<data nocheck="yes"> +HTTP/1.1 200 OK +Date: Thu, 09 Nov 2010 14:49:00 GMT +Server: test-server/fake +Content-Length: 6 +Connection: close +Content-Type: text/html + +12345 +</data> +</reply> + +# +# Client-side +<client> +<server> +http +</server> +<name> +HTTP GET -o fname -J without Content-Disposition, -D stdout +</name> +<command option="no-output,no-include"> +http://%HOSTIP:%HTTPPORT/1369 -J -o log/outfile1369 -D - +</command> +<postcheck> +perl %SRCDIR/libtest/notexists.pl log/1369 +</postcheck> +</client> + +# +# Verify data after the test has been "shot" +<verify> +<strip> +^User-Agent:.* +</strip> +<protocol> +GET /1369 HTTP/1.1 +Host: %HOSTIP:%HTTPPORT +Accept: */* + +</protocol> + +<file1 name="log/outfile1369"> +12345 +</file1> + +<file2 name="log/stdout1369"> +HTTP/1.1 200 OK +Date: Thu, 09 Nov 2010 14:49:00 GMT +Server: test-server/fake +Content-Length: 6 +Connection: close +Content-Type: text/html + +</file2> + +</verify> +</testcase> diff --git a/tests/data/test1370 b/tests/data/test1370 new file mode 100644 index 0000000000000000000000000000000000000000..91e95c4634cc47545b16bc1476394acf799a0d04 --- /dev/null +++ b/tests/data/test1370 @@ -0,0 +1,83 @@ +<testcase> +<info> +<keywords> +HTTP +HTTP GET +-J +</keywords> +</info> + +# +<reply> +<data nocheck="yes"> +HTTP/1.1 200 OK +Date: Thu, 09 Nov 2010 14:49:00 GMT +Server: test-server/fake +Content-Length: 6 +Connection: close +Content-Type: text/html +Content-Disposition: filename=name1370; charset=funny; option=strange + +12345 +</data> +</reply> + +# +# Client-side +<client> +# this relies on the debug feature to allow us to set directory to store the +# -J output in, using the CURL_TESTDIR variable +<features> +debug +</features> +<server> +http +</server> +<name> +HTTP GET -o fname -J and Content-Disposition, -D file +</name> +<setenv> +CURL_TESTDIR=%PWD/log +</setenv> +<command option="no-output,no-include"> +http://%HOSTIP:%HTTPPORT/1370 -J -o log/outfile1370 -D log/heads1370 +</command> +<postcheck> +perl %SRCDIR/libtest/notexists.pl log/1370 +</postcheck> +</client> + +# +# Verify data after the test has been "shot" +<verify> +<strip> +^User-Agent:.* +</strip> +<protocol> +GET /1370 HTTP/1.1 +Host: %HOSTIP:%HTTPPORT +Accept: */* + +</protocol> + +<file1 name="log/name1370"> +12345 +</file1> + +<file2 name="log/heads1370"> +HTTP/1.1 200 OK +Date: Thu, 09 Nov 2010 14:49:00 GMT +Server: test-server/fake +Content-Length: 6 +Connection: close +Content-Type: text/html +Content-Disposition: filename=name1370; charset=funny; option=strange + +</file2> + +<file3 name="log/stdout1370"> +curl: Saved to filename '%PWD/log/name1370' +</file3> + +</verify> +</testcase> diff --git a/tests/data/test1371 b/tests/data/test1371 new file mode 100644 index 0000000000000000000000000000000000000000..6313d566564e59b219e35c915004331cbf7761a4 --- /dev/null +++ b/tests/data/test1371 @@ -0,0 +1,80 @@ +<testcase> +<info> +<keywords> +HTTP +HTTP GET +-J +</keywords> +</info> + +# +<reply> +<data nocheck="yes"> +HTTP/1.1 200 OK +Date: Thu, 09 Nov 2010 14:49:00 GMT +Server: test-server/fake +Content-Length: 6 +Connection: close +Content-Type: text/html +Content-Disposition: filename=name1371; charset=funny; option=strange + +12345 +</data> +</reply> + +# +# Client-side +<client> +# this relies on the debug feature to allow us to set directory to store the +# -J output in, using the CURL_TESTDIR variable +<features> +debug +</features> +<server> +http +</server> +<name> +HTTP GET -o fname -J and Content-Disposition, -D stdout +</name> +<setenv> +CURL_TESTDIR=%PWD/log +</setenv> +<command option="no-output,no-include"> +http://%HOSTIP:%HTTPPORT/1371 -J -o log/outfile1371 -D - +</command> +<postcheck> +perl %SRCDIR/libtest/notexists.pl log/1371 +</postcheck> +</client> + +# +# Verify data after the test has been "shot" +<verify> +<strip> +^User-Agent:.* +</strip> +<protocol> +GET /1371 HTTP/1.1 +Host: %HOSTIP:%HTTPPORT +Accept: */* + +</protocol> + +<file1 name="log/name1371"> +12345 +</file1> + +<file2 name="log/stdout1371"> +HTTP/1.1 200 OK +Date: Thu, 09 Nov 2010 14:49:00 GMT +Server: test-server/fake +Content-Length: 6 +Connection: close +Content-Type: text/html +Content-Disposition: filename=name1371; charset=funny; option=strange + +curl: Saved to filename '%PWD/log/name1371' +</file2> + +</verify> +</testcase> diff --git a/tests/data/test1372 b/tests/data/test1372 new file mode 100644 index 0000000000000000000000000000000000000000..30a64aaa1fa8d9cf3408ff4329e5e4ed3b057871 --- /dev/null +++ b/tests/data/test1372 @@ -0,0 +1,78 @@ +<testcase> +<info> +<keywords> +HTTP +HTTP GET +</keywords> +</info> + +# +<reply> +<data nocheck="yes"> +HTTP/1.1 200 OK +Date: Thu, 09 Nov 2010 14:49:00 GMT +Server: test-server/fake +Content-Length: 6 +Connection: close +Content-Type: text/html + +12345 +</data> +</reply> + +# +# Client-side +<client> +<server> +http +</server> +<name> +HTTP GET -o fname -i without Content-Disposition, -D file +</name> +<command option="no-output,no-include"> +http://%HOSTIP:%HTTPPORT/1372 -i -o log/outfile1372 -D log/heads1372 +</command> +<postcheck> +perl %SRCDIR/libtest/notexists.pl log/1372 +</postcheck> +</client> + +# +# Verify data after the test has been "shot" +<verify> +<strip> +^User-Agent:.* +</strip> +<protocol> +GET /1372 HTTP/1.1 +Host: %HOSTIP:%HTTPPORT +Accept: */* + +</protocol> + +<file1 name="log/outfile1372"> +HTTP/1.1 200 OK +Date: Thu, 09 Nov 2010 14:49:00 GMT +Server: test-server/fake +Content-Length: 6 +Connection: close +Content-Type: text/html + +12345 +</file1> + +<file2 name="log/heads1372"> +HTTP/1.1 200 OK +Date: Thu, 09 Nov 2010 14:49:00 GMT +Server: test-server/fake +Content-Length: 6 +Connection: close +Content-Type: text/html + +</file2> + +<file3 name="log/stdout1372"> +</file3> + +</verify> +</testcase> diff --git a/tests/data/test1373 b/tests/data/test1373 new file mode 100644 index 0000000000000000000000000000000000000000..2ad28303551f41d56707c3a28764c17a39ddf933 --- /dev/null +++ b/tests/data/test1373 @@ -0,0 +1,75 @@ +<testcase> +<info> +<keywords> +HTTP +HTTP GET +</keywords> +</info> + +# +<reply> +<data nocheck="yes"> +HTTP/1.1 200 OK +Date: Thu, 09 Nov 2010 14:49:00 GMT +Server: test-server/fake +Content-Length: 6 +Connection: close +Content-Type: text/html + +12345 +</data> +</reply> + +# +# Client-side +<client> +<server> +http +</server> +<name> +HTTP GET -o fname -i without Content-Disposition, -D stdout +</name> +<command option="no-output,no-include"> +http://%HOSTIP:%HTTPPORT/1373 -i -o log/outfile1373 -D - +</command> +<postcheck> +perl %SRCDIR/libtest/notexists.pl log/1373 +</postcheck> +</client> + +# +# Verify data after the test has been "shot" +<verify> +<strip> +^User-Agent:.* +</strip> +<protocol> +GET /1373 HTTP/1.1 +Host: %HOSTIP:%HTTPPORT +Accept: */* + +</protocol> + +<file1 name="log/outfile1373"> +HTTP/1.1 200 OK +Date: Thu, 09 Nov 2010 14:49:00 GMT +Server: test-server/fake +Content-Length: 6 +Connection: close +Content-Type: text/html + +12345 +</file1> + +<file2 name="log/stdout1373"> +HTTP/1.1 200 OK +Date: Thu, 09 Nov 2010 14:49:00 GMT +Server: test-server/fake +Content-Length: 6 +Connection: close +Content-Type: text/html + +</file2> + +</verify> +</testcase> diff --git a/tests/data/test1374 b/tests/data/test1374 new file mode 100644 index 0000000000000000000000000000000000000000..6ffe88d565f95493070dff5e28a94f0b34999c62 --- /dev/null +++ b/tests/data/test1374 @@ -0,0 +1,81 @@ +<testcase> +<info> +<keywords> +HTTP +HTTP GET +</keywords> +</info> + +# +<reply> +<data nocheck="yes"> +HTTP/1.1 200 OK +Date: Thu, 09 Nov 2010 14:49:00 GMT +Server: test-server/fake +Content-Length: 6 +Connection: close +Content-Type: text/html +Content-Disposition: filename=name1374; charset=funny; option=strange + +12345 +</data> +</reply> + +# +# Client-side +<client> +<server> +http +</server> +<name> +HTTP GET -o fname -i and Content-Disposition, -D file +</name> +<command option="no-output,no-include"> +http://%HOSTIP:%HTTPPORT/1374 -i -o log/outfile1374 -D log/heads1374 +</command> +<postcheck> +perl %SRCDIR/libtest/notexists.pl log/1374 log/name1374 +</postcheck> +</client> + +# +# Verify data after the test has been "shot" +<verify> +<strip> +^User-Agent:.* +</strip> +<protocol> +GET /1374 HTTP/1.1 +Host: %HOSTIP:%HTTPPORT +Accept: */* + +</protocol> + +<file1 name="log/outfile1374"> +HTTP/1.1 200 OK +Date: Thu, 09 Nov 2010 14:49:00 GMT +Server: test-server/fake +Content-Length: 6 +Connection: close +Content-Type: text/html +Content-Disposition: filename=name1374; charset=funny; option=strange + +12345 +</file1> + +<file2 name="log/heads1374"> +HTTP/1.1 200 OK +Date: Thu, 09 Nov 2010 14:49:00 GMT +Server: test-server/fake +Content-Length: 6 +Connection: close +Content-Type: text/html +Content-Disposition: filename=name1374; charset=funny; option=strange + +</file2> + +<file3 name="log/stdout1374"> +</file3> + +</verify> +</testcase> diff --git a/tests/data/test1375 b/tests/data/test1375 new file mode 100644 index 0000000000000000000000000000000000000000..a1cc5a00e3719ab8eafe39169af511807670b996 --- /dev/null +++ b/tests/data/test1375 @@ -0,0 +1,78 @@ +<testcase> +<info> +<keywords> +HTTP +HTTP GET +</keywords> +</info> + +# +<reply> +<data nocheck="yes"> +HTTP/1.1 200 OK +Date: Thu, 09 Nov 2010 14:49:00 GMT +Server: test-server/fake +Content-Length: 6 +Connection: close +Content-Type: text/html +Content-Disposition: filename=name1375; charset=funny; option=strange + +12345 +</data> +</reply> + +# +# Client-side +<client> +<server> +http +</server> +<name> +HTTP GET -o fname -i and Content-Disposition, -D stdout +</name> +<command option="no-output,no-include"> +http://%HOSTIP:%HTTPPORT/1375 -i -o log/outfile1375 -D - +</command> +<postcheck> +perl %SRCDIR/libtest/notexists.pl log/1375 log/name1375 +</postcheck> +</client> + +# +# Verify data after the test has been "shot" +<verify> +<strip> +^User-Agent:.* +</strip> +<protocol> +GET /1375 HTTP/1.1 +Host: %HOSTIP:%HTTPPORT +Accept: */* + +</protocol> + +<file1 name="log/outfile1375"> +HTTP/1.1 200 OK +Date: Thu, 09 Nov 2010 14:49:00 GMT +Server: test-server/fake +Content-Length: 6 +Connection: close +Content-Type: text/html +Content-Disposition: filename=name1375; charset=funny; option=strange + +12345 +</file1> + +<file2 name="log/stdout1375"> +HTTP/1.1 200 OK +Date: Thu, 09 Nov 2010 14:49:00 GMT +Server: test-server/fake +Content-Length: 6 +Connection: close +Content-Type: text/html +Content-Disposition: filename=name1375; charset=funny; option=strange + +</file2> + +</verify> +</testcase> diff --git a/tests/data/test1376 b/tests/data/test1376 new file mode 100644 index 0000000000000000000000000000000000000000..3280874a652f4263b6374f832fceebc7bb830a30 --- /dev/null +++ b/tests/data/test1376 @@ -0,0 +1,68 @@ +<testcase> +<info> +<keywords> +HTTP +HTTP GET +</keywords> +</info> + +# +<reply> +<data nocheck="yes"> +HTTP/1.1 200 OK +Date: Thu, 09 Nov 2010 14:49:00 GMT +Server: test-server/fake +Content-Length: 6 +Connection: close +Content-Type: text/html + +12345 +</data> +</reply> + +# +# Client-side +<client> +<server> +http +</server> +<name> +HTTP GET -o fname -i without Content-Disposition, without -D +</name> +<command option="no-output,no-include"> +http://%HOSTIP:%HTTPPORT/1376 -i -o log/outfile1376 +</command> +<postcheck> +perl %SRCDIR/libtest/notexists.pl log/1376 +</postcheck> +</client> + +# +# Verify data after the test has been "shot" +<verify> +<strip> +^User-Agent:.* +</strip> +<protocol> +GET /1376 HTTP/1.1 +Host: %HOSTIP:%HTTPPORT +Accept: */* + +</protocol> + +<file1 name="log/outfile1376"> +HTTP/1.1 200 OK +Date: Thu, 09 Nov 2010 14:49:00 GMT +Server: test-server/fake +Content-Length: 6 +Connection: close +Content-Type: text/html + +12345 +</file1> + +<file2 name="log/stdout1376"> +</file2> + +</verify> +</testcase> diff --git a/tests/data/test1377 b/tests/data/test1377 new file mode 100644 index 0000000000000000000000000000000000000000..735355f5f9a11b1462ea07951fe159e479eb2516 --- /dev/null +++ b/tests/data/test1377 @@ -0,0 +1,70 @@ +<testcase> +<info> +<keywords> +HTTP +HTTP GET +</keywords> +</info> + +# +<reply> +<data nocheck="yes"> +HTTP/1.1 200 OK +Date: Thu, 09 Nov 2010 14:49:00 GMT +Server: test-server/fake +Content-Length: 6 +Connection: close +Content-Type: text/html +Content-Disposition: filename=name1377; charset=funny; option=strange + +12345 +</data> +</reply> + +# +# Client-side +<client> +<server> +http +</server> +<name> +HTTP GET -o fname -i and Content-Disposition, without -D +</name> +<command option="no-output,no-include"> +http://%HOSTIP:%HTTPPORT/1377 -i -o log/outfile1377 +</command> +<postcheck> +perl %SRCDIR/libtest/notexists.pl log/1377 log/name1377 +</postcheck> +</client> + +# +# Verify data after the test has been "shot" +<verify> +<strip> +^User-Agent:.* +</strip> +<protocol> +GET /1377 HTTP/1.1 +Host: %HOSTIP:%HTTPPORT +Accept: */* + +</protocol> + +<file1 name="log/outfile1377"> +HTTP/1.1 200 OK +Date: Thu, 09 Nov 2010 14:49:00 GMT +Server: test-server/fake +Content-Length: 6 +Connection: close +Content-Type: text/html +Content-Disposition: filename=name1377; charset=funny; option=strange + +12345 +</file1> + +<file2 name="log/stdout1377"> +</file2> + +</verify> +</testcase> diff --git a/tests/data/test1378 b/tests/data/test1378 new file mode 100644 index 0000000000000000000000000000000000000000..e004afcaf2c74e63ced7079159d907c807507771 --- /dev/null +++ b/tests/data/test1378 @@ -0,0 +1,56 @@ +<testcase> +<info> +<keywords> +FTP +RETR +</keywords> +</info> + +# Server-side +<reply> +<data nocheck="yes"> +fooo +mooo +</data> +</reply> + +# Client-side +<client> +<server> +ftp +</server> +<name> +FTP DL, file without Content-Disposition inside, using -o fname +</name> +<command option="no-output,no-include"> +ftp://%HOSTIP:%FTPPORT/path/file1378 -o log/download1378 +</command> +<postcheck> +perl %SRCDIR/libtest/notexists.pl log/file1378 +</postcheck> +</client> + +# Verify data after the test has been "shot" +<verify> +<protocol> +USER anonymous +PASS ftp@example.com +PWD +CWD path +EPSV +TYPE I +SIZE file1378 +RETR file1378 +QUIT +</protocol> + +<file1 name="log/download1378"> +fooo +mooo +</file1> + +<file2 name="log/stdout1378"> +</file2> + +</verify> +</testcase> diff --git a/tests/data/test1379 b/tests/data/test1379 new file mode 100644 index 0000000000000000000000000000000000000000..26552c8fab7fb0dad4bb8f7f2c9d6dc7b31f7117 --- /dev/null +++ b/tests/data/test1379 @@ -0,0 +1,77 @@ +<testcase> +<info> +<keywords> +FTP +RETR +</keywords> +</info> + +# Server-side +<reply> +<data nocheck="yes"> +fooo +mooo +</data> +</reply> + +# Client-side +<client> +<server> +ftp +</server> +<name> +FTP DL, file without C-D inside, using -o fname -D file +</name> +<command option="no-output,no-include"> +ftp://%HOSTIP:%FTPPORT/path/file1379 -o log/download1379 -D log/heads1379 +</command> +<postcheck> +perl %SRCDIR/libtest/notexists.pl log/file1379 +</postcheck> +</client> + +# Verify data after the test has been "shot" +<verify> +<protocol> +USER anonymous +PASS ftp@example.com +PWD +CWD path +EPSV +TYPE I +SIZE file1379 +RETR file1379 +QUIT +</protocol> + +<file1 name="log/download1379"> +fooo +mooo +</file1> + +<file2 name="log/heads1379"> +220- _ _ ____ _ +220- ___| | | | _ \| | +220- / __| | | | |_) | | +220- | (__| |_| | _ <| |___ +220 \___|\___/|_| \_\_____| +331 We are happy you popped in! +230 Welcome you silly person +257 "/" is current directory +250 CWD command successful. +229 Entering Passive Mode (stripped) +200 I modify TYPE as you wanted +213 10 +150 Binary data connection for 1379 () (10 bytes). +226 File transfer complete +221 bye bye baby +</file2> +<stripfile2> +s/^(229 Entering Passive Mode \().*(\).*)/${1}stripped${2}/ +</stripfile2> + +<file3 name="log/stdout1379"> +</file3> + +</verify> +</testcase> diff --git a/tests/data/test1380 b/tests/data/test1380 new file mode 100644 index 0000000000000000000000000000000000000000..060b4b0b8e228155043e2d190f5fe7ba87cdd5c5 --- /dev/null +++ b/tests/data/test1380 @@ -0,0 +1,74 @@ +<testcase> +<info> +<keywords> +FTP +RETR +</keywords> +</info> + +# Server-side +<reply> +<data nocheck="yes"> +fooo +mooo +</data> +</reply> + +# Client-side +<client> +<server> +ftp +</server> +<name> +FTP DL, file without C-D inside, using -o fname -D stdout +</name> +<command option="no-output,no-include"> +ftp://%HOSTIP:%FTPPORT/path/file1380 -o log/download1380 -D - +</command> +<postcheck> +perl %SRCDIR/libtest/notexists.pl log/file1380 +</postcheck> +</client> + +# Verify data after the test has been "shot" +<verify> +<protocol> +USER anonymous +PASS ftp@example.com +PWD +CWD path +EPSV +TYPE I +SIZE file1380 +RETR file1380 +QUIT +</protocol> + +<file1 name="log/download1380"> +fooo +mooo +</file1> + +<file2 name="log/stdout1380"> +220- _ _ ____ _ +220- ___| | | | _ \| | +220- / __| | | | |_) | | +220- | (__| |_| | _ <| |___ +220 \___|\___/|_| \_\_____| +331 We are happy you popped in! +230 Welcome you silly person +257 "/" is current directory +250 CWD command successful. +229 Entering Passive Mode (stripped) +200 I modify TYPE as you wanted +213 10 +150 Binary data connection for 1380 () (10 bytes). +226 File transfer complete +221 bye bye baby +</file2> +<stripfile2> +s/^(229 Entering Passive Mode \().*(\).*)/${1}stripped${2}/ +</stripfile2> + +</verify> +</testcase> diff --git a/tests/data/test1381 b/tests/data/test1381 new file mode 100644 index 0000000000000000000000000000000000000000..c82ac745dd2c7f50b1d3e2d98f3dc479a6585277 --- /dev/null +++ b/tests/data/test1381 @@ -0,0 +1,78 @@ +<testcase> +<info> +<keywords> +FTP +RETR +-J +</keywords> +</info> + +# Server-side +<reply> +<data nocheck="yes"> +fooo +mooo +</data> +</reply> + +# Client-side +<client> +<server> +ftp +</server> +<name> +FTP DL, file without C-D inside, using -o fname -J -D file +</name> +<command option="no-output,no-include"> +ftp://%HOSTIP:%FTPPORT/path/file1381 -o log/download1381 -J -D log/heads1381 +</command> +<postcheck> +perl %SRCDIR/libtest/notexists.pl log/file1381 +</postcheck> +</client> + +# Verify data after the test has been "shot" +<verify> +<protocol> +USER anonymous +PASS ftp@example.com +PWD +CWD path +EPSV +TYPE I +SIZE file1381 +RETR file1381 +QUIT +</protocol> + +<file1 name="log/download1381"> +fooo +mooo +</file1> + +<file2 name="log/heads1381"> +220- _ _ ____ _ +220- ___| | | | _ \| | +220- / __| | | | |_) | | +220- | (__| |_| | _ <| |___ +220 \___|\___/|_| \_\_____| +331 We are happy you popped in! +230 Welcome you silly person +257 "/" is current directory +250 CWD command successful. +229 Entering Passive Mode (stripped) +200 I modify TYPE as you wanted +213 10 +150 Binary data connection for 1381 () (10 bytes). +226 File transfer complete +221 bye bye baby +</file2> +<stripfile2> +s/^(229 Entering Passive Mode \().*(\).*)/${1}stripped${2}/ +</stripfile2> + +<file3 name="log/stdout1381"> +</file3> + +</verify> +</testcase> diff --git a/tests/data/test1382 b/tests/data/test1382 new file mode 100644 index 0000000000000000000000000000000000000000..5e5513f3869aef15bc3bd6b956a6f684fae10b48 --- /dev/null +++ b/tests/data/test1382 @@ -0,0 +1,75 @@ +<testcase> +<info> +<keywords> +FTP +RETR +-J +</keywords> +</info> + +# Server-side +<reply> +<data nocheck="yes"> +fooo +mooo +</data> +</reply> + +# Client-side +<client> +<server> +ftp +</server> +<name> +FTP DL, file without C-D inside, using -o fname -J -D stdout +</name> +<command option="no-output,no-include"> +ftp://%HOSTIP:%FTPPORT/path/file1382 -o log/download1382 -J -D - +</command> +<postcheck> +perl %SRCDIR/libtest/notexists.pl log/file1382 +</postcheck> +</client> + +# Verify data after the test has been "shot" +<verify> +<protocol> +USER anonymous +PASS ftp@example.com +PWD +CWD path +EPSV +TYPE I +SIZE file1382 +RETR file1382 +QUIT +</protocol> + +<file1 name="log/download1382"> +fooo +mooo +</file1> + +<file2 name="log/stdout1382"> +220- _ _ ____ _ +220- ___| | | | _ \| | +220- / __| | | | |_) | | +220- | (__| |_| | _ <| |___ +220 \___|\___/|_| \_\_____| +331 We are happy you popped in! +230 Welcome you silly person +257 "/" is current directory +250 CWD command successful. +229 Entering Passive Mode (stripped) +200 I modify TYPE as you wanted +213 10 +150 Binary data connection for 1382 () (10 bytes). +226 File transfer complete +221 bye bye baby +</file2> +<stripfile2> +s/^(229 Entering Passive Mode \().*(\).*)/${1}stripped${2}/ +</stripfile2> + +</verify> +</testcase> diff --git a/tests/data/test1383 b/tests/data/test1383 new file mode 100644 index 0000000000000000000000000000000000000000..2604faf9631acd0cc3775ec7b00fd6bc9ed9f052 --- /dev/null +++ b/tests/data/test1383 @@ -0,0 +1,77 @@ +<testcase> +<info> +<keywords> +FTP +RETR +</keywords> +</info> + +# Server-side +<reply> +<data nocheck="yes"> +fooo +mooo +</data> +</reply> + +# Client-side +<client> +<server> +ftp +</server> +<name> +FTP DL, file without C-D inside, using -o fname -i -D file +</name> +<command option="no-output,no-include"> +ftp://%HOSTIP:%FTPPORT/path/file1383 -o log/download1383 -i -D log/heads1383 +</command> +<postcheck> +perl %SRCDIR/libtest/notexists.pl log/file1383 +</postcheck> +</client> + +# Verify data after the test has been "shot" +<verify> +<protocol> +USER anonymous +PASS ftp@example.com +PWD +CWD path +EPSV +TYPE I +SIZE file1383 +RETR file1383 +QUIT +</protocol> + +<file1 name="log/download1383"> +fooo +mooo +</file1> + +<file2 name="log/heads1383"> +220- _ _ ____ _ +220- ___| | | | _ \| | +220- / __| | | | |_) | | +220- | (__| |_| | _ <| |___ +220 \___|\___/|_| \_\_____| +331 We are happy you popped in! +230 Welcome you silly person +257 "/" is current directory +250 CWD command successful. +229 Entering Passive Mode (stripped) +200 I modify TYPE as you wanted +213 10 +150 Binary data connection for 1383 () (10 bytes). +226 File transfer complete +221 bye bye baby +</file2> +<stripfile2> +s/^(229 Entering Passive Mode \().*(\).*)/${1}stripped${2}/ +</stripfile2> + +<file3 name="log/stdout1383"> +</file3> + +</verify> +</testcase> diff --git a/tests/data/test1384 b/tests/data/test1384 new file mode 100644 index 0000000000000000000000000000000000000000..289aa9bdbfc9b0f6500e5a9418a8ccbd479eccf8 --- /dev/null +++ b/tests/data/test1384 @@ -0,0 +1,74 @@ +<testcase> +<info> +<keywords> +FTP +RETR +</keywords> +</info> + +# Server-side +<reply> +<data nocheck="yes"> +fooo +mooo +</data> +</reply> + +# Client-side +<client> +<server> +ftp +</server> +<name> +FTP DL, file without C-D inside, using -o fname -i -D stdout +</name> +<command option="no-output,no-include"> +ftp://%HOSTIP:%FTPPORT/path/file1384 -o log/download1384 -i -D - +</command> +<postcheck> +perl %SRCDIR/libtest/notexists.pl log/file1384 +</postcheck> +</client> + +# Verify data after the test has been "shot" +<verify> +<protocol> +USER anonymous +PASS ftp@example.com +PWD +CWD path +EPSV +TYPE I +SIZE file1384 +RETR file1384 +QUIT +</protocol> + +<file1 name="log/download1384"> +fooo +mooo +</file1> + +<file2 name="log/stdout1384"> +220- _ _ ____ _ +220- ___| | | | _ \| | +220- / __| | | | |_) | | +220- | (__| |_| | _ <| |___ +220 \___|\___/|_| \_\_____| +331 We are happy you popped in! +230 Welcome you silly person +257 "/" is current directory +250 CWD command successful. +229 Entering Passive Mode (stripped) +200 I modify TYPE as you wanted +213 10 +150 Binary data connection for 1384 () (10 bytes). +226 File transfer complete +221 bye bye baby +</file2> +<stripfile2> +s/^(229 Entering Passive Mode \().*(\).*)/${1}stripped${2}/ +</stripfile2> + +</verify> +</testcase> diff --git a/tests/data/test1385 b/tests/data/test1385 new file mode 100644 index 0000000000000000000000000000000000000000..ca04b606c388996276368a8bae84f83c5b99f8f9 --- /dev/null +++ b/tests/data/test1385 @@ -0,0 +1,74 @@ +<testcase> +<info> +<keywords> +FTP +RETR +</keywords> +</info> + +# Server-side +<reply> +<data nocheck="yes"> +fooo +mooo +</data> +</reply> + +# Client-side +<client> +<server> +ftp +</server> +<name> +FTP DL, file without C-D inside, using -o fname -i, without -D +</name> +<command option="no-output,no-include"> +ftp://%HOSTIP:%FTPPORT/path/file1385 -o log/download1385 -i +</command> +<postcheck> +perl %SRCDIR/libtest/notexists.pl log/file1385 +</postcheck> +</client> + +# Verify data after the test has been "shot" +<verify> +<protocol> +USER anonymous +PASS ftp@example.com +PWD +CWD path +EPSV +TYPE I +SIZE file1385 +RETR file1385 +QUIT +</protocol> + +<file1 name="log/download1385"> +fooo +mooo +</file1> + +<file2 name="log/stdout1385"> +220- _ _ ____ _ +220- ___| | | | _ \| | +220- / __| | | | |_) | | +220- | (__| |_| | _ <| |___ +220 \___|\___/|_| \_\_____| +331 We are happy you popped in! +230 Welcome you silly person +257 "/" is current directory +250 CWD command successful. +229 Entering Passive Mode (stripped) +200 I modify TYPE as you wanted +213 10 +150 Binary data connection for 1385 () (10 bytes). +226 File transfer complete +221 bye bye baby +</file2> +<stripfile2> +s/^(229 Entering Passive Mode \().*(\).*)/${1}stripped${2}/ +</stripfile2> + +</verify> +</testcase> diff --git a/tests/data/test1386 b/tests/data/test1386 new file mode 100644 index 0000000000000000000000000000000000000000..883b408837236691b2e7082877f29532fbde7e61 --- /dev/null +++ b/tests/data/test1386 @@ -0,0 +1,71 @@ +<testcase> +<info> +<keywords> +FTP +RETR +</keywords> +</info> + +# Server-side +<reply> +# file1386 contents... +<data nocheck="yes"> +HTTP/1.1 200 OK +Date: Thu, 09 Nov 2010 14:49:00 GMT +Server: test-server/fake +Content-Length: 6 +Connection: close +Content-Type: text/html +Content-Disposition: filename=name1386; charset=funny; option=strange + +MOOOO +</data> +</reply> + +# Client-side +<client> +<server> +ftp +</server> +<name> +FTP DL, file with Content-Disposition inside, using -o fname +</name> +<command option="no-output,no-include"> +ftp://%HOSTIP:%FTPPORT/path/file1386 -o log/download1386 +</command> +<postcheck> +perl %SRCDIR/libtest/notexists.pl log/file1386 log/name1386 +</postcheck> +</client> + +# Verify data after the test has been "shot" +<verify> +<protocol> +USER anonymous +PASS ftp@example.com +PWD +CWD path +EPSV +TYPE I +SIZE file1386 +RETR file1386 +QUIT +</protocol> + +<file1 name="log/download1386"> +HTTP/1.1 200 OK +Date: Thu, 09 Nov 2010 14:49:00 GMT +Server: test-server/fake +Content-Length: 6 +Connection: close +Content-Type: text/html +Content-Disposition: filename=name1386; charset=funny; option=strange + +MOOOO +</file1> + +<file2 name="log/stdout1386"> +</file2> + +</verify> +</testcase> diff --git a/tests/data/test1387 b/tests/data/test1387 new file mode 100644 index 0000000000000000000000000000000000000000..6628b8963e5e664f1b6e8ae7e0e0affa879fa4c1 --- /dev/null +++ b/tests/data/test1387 @@ -0,0 +1,92 @@ +<testcase> +<info> +<keywords> +FTP +RETR +</keywords> +</info> + +# Server-side +<reply> +# file1387 contents... +<data nocheck="yes"> +HTTP/1.1 200 OK +Date: Thu, 09 Nov 2010 14:49:00 GMT +Server: test-server/fake +Content-Length: 6 +Connection: close +Content-Type: text/html +Content-Disposition: filename=name1387; charset=funny; option=strange + +MOOOO +</data> +</reply> + +# Client-side +<client> +<server> +ftp +</server> +<name> +FTP DL, file with C-D inside, using -o fname -D file +</name> +<command option="no-output,no-include"> +ftp://%HOSTIP:%FTPPORT/path/file1387 -o log/download1387 -D log/heads1387 +</command> +<postcheck> +perl %SRCDIR/libtest/notexists.pl log/file1387 log/name1387 +</postcheck> +</client> + +# Verify data after the test has been "shot" +<verify> +<protocol> +USER anonymous +PASS ftp@example.com +PWD +CWD path +EPSV +TYPE I +SIZE file1387 +RETR file1387 +QUIT +</protocol> + +<file1 name="log/download1387"> +HTTP/1.1 200 OK +Date: Thu, 09 Nov 2010 14:49:00 GMT +Server: test-server/fake +Content-Length: 6 +Connection: close +Content-Type: text/html +Content-Disposition: filename=name1387; charset=funny; option=strange + +MOOOO +</file1> + +<file2 name="log/heads1387"> +220- _ _ ____ _ +220- ___| | | | _ \| | +220- / __| | | | |_) | | +220- | (__| |_| | _ <| |___ +220 \___|\___/|_| \_\_____| +331 We are happy you popped in! +230 Welcome you silly person +257 "/" is current directory +250 CWD command successful. +229 Entering Passive Mode (stripped) +200 I modify TYPE as you wanted +213 214 +150 Binary data connection for 1387 () (214 bytes). +226 File transfer complete +221 bye bye baby +</file2> +<stripfile2> +s/^(229 Entering Passive Mode \().*(\).*)/${1}stripped${2}/ +</stripfile2> + +<file3 name="log/stdout1387"> +</file3> + +</verify> +</testcase> diff --git a/tests/data/test1388 b/tests/data/test1388 new file mode 100644 index 0000000000000000000000000000000000000000..478a2e9fa88836c0b3ea9592d4b73c76b9909060 --- /dev/null +++ b/tests/data/test1388 @@ -0,0 +1,89 @@ +<testcase> +<info> +<keywords> +FTP +RETR +</keywords> +</info> + +# Server-side +<reply> +# file1388 contents... +<data nocheck="yes"> +HTTP/1.1 200 OK +Date: Thu, 09 Nov 2010 14:49:00 GMT +Server: test-server/fake +Content-Length: 6 +Connection: close +Content-Type: text/html +Content-Disposition: filename=name1388; charset=funny; option=strange + +MOOOO +</data> +</reply> + +# Client-side +<client> +<server> +ftp +</server> +<name> +FTP DL, file with C-D inside, using -o fname -D stdout +</name> +<command option="no-output,no-include"> +ftp://%HOSTIP:%FTPPORT/path/file1388 -o log/download1388 -D - +</command> +<postcheck> +perl %SRCDIR/libtest/notexists.pl log/file1388 log/name1388 +</postcheck> +</client> + +# Verify data after the test has been "shot" +<verify> +<protocol> +USER anonymous +PASS ftp@example.com +PWD +CWD path +EPSV +TYPE I +SIZE file1388 +RETR file1388 +QUIT +</protocol> + +<file1 name="log/download1388"> +HTTP/1.1 200 OK +Date: Thu, 09 Nov 2010 14:49:00 GMT +Server: test-server/fake +Content-Length: 6 +Connection: close +Content-Type: text/html +Content-Disposition: filename=name1388; charset=funny; option=strange + +MOOOO +</file1> + +<file2 name="log/stdout1388"> +220- _ _ ____ _ +220- ___| | | | _ \| | +220- / __| | | | |_) | | +220- | (__| |_| | _ <| |___ +220 \___|\___/|_| \_\_____| +331 We are happy you popped in! +230 Welcome you silly person +257 "/" is current directory +250 CWD command successful. +229 Entering Passive Mode (stripped) +200 I modify TYPE as you wanted +213 214 +150 Binary data connection for 1388 () (214 bytes). +226 File transfer complete +221 bye bye baby +</file2> +<stripfile2> +s/^(229 Entering Passive Mode \().*(\).*)/${1}stripped${2}/ +</stripfile2> + +</verify> +</testcase> diff --git a/tests/data/test1389 b/tests/data/test1389 new file mode 100644 index 0000000000000000000000000000000000000000..06b9c26b1bf1ca9f448343107bc56d4cead52a6c --- /dev/null +++ b/tests/data/test1389 @@ -0,0 +1,93 @@ +<testcase> +<info> +<keywords> +FTP +RETR +-J +</keywords> +</info> + +# Server-side +<reply> +# file1389 contents... +<data nocheck="yes"> +HTTP/1.1 200 OK +Date: Thu, 09 Nov 2010 14:49:00 GMT +Server: test-server/fake +Content-Length: 6 +Connection: close +Content-Type: text/html +Content-Disposition: filename=name1389; charset=funny; option=strange + +MOOOO +</data> +</reply> + +# Client-side +<client> +<server> +ftp +</server> +<name> +FTP DL, file with C-D inside, using -o fname -J -D file +</name> +<command option="no-output,no-include"> +ftp://%HOSTIP:%FTPPORT/path/file1389 -o log/download1389 -J -D log/heads1389 +</command> +<postcheck> +perl %SRCDIR/libtest/notexists.pl log/file1389 log/name1389 +</postcheck> +</client> + +# Verify data after the test has been "shot" +<verify> +<protocol> +USER anonymous +PASS ftp@example.com +PWD +CWD path +EPSV +TYPE I +SIZE file1389 +RETR file1389 +QUIT +</protocol> + +<file1 name="log/download1389"> +HTTP/1.1 200 OK +Date: Thu, 09 Nov 2010 14:49:00 GMT +Server: test-server/fake +Content-Length: 6 +Connection: close +Content-Type: text/html +Content-Disposition: filename=name1389; charset=funny; option=strange + +MOOOO +</file1> + +<file2 name="log/heads1389"> +220- _ _ ____ _ +220- ___| | | | _ \| | +220- / __| | | | |_) | | +220- | (__| |_| | _ <| |___ +220 \___|\___/|_| \_\_____| +331 We are happy you popped in! +230 Welcome you silly person +257 "/" is current directory +250 CWD command successful. +229 Entering Passive Mode (stripped) +200 I modify TYPE as you wanted +213 214 +150 Binary data connection for 1389 () (214 bytes). +226 File transfer complete +221 bye bye baby +</file2> +<stripfile2> +s/^(229 Entering Passive Mode \().*(\).*)/${1}stripped${2}/ +</stripfile2> + +<file3 name="log/stdout1389"> +</file3> + +</verify> +</testcase> diff --git a/tests/data/test1390 b/tests/data/test1390 new file mode 100644 index 0000000000000000000000000000000000000000..b5980369e63ba68fe164bc8406ccd14a1561232f --- /dev/null +++ b/tests/data/test1390 @@ -0,0 +1,90 @@ +<testcase> +<info> +<keywords> +FTP +RETR +-J +</keywords> +</info> + +# Server-side +<reply> +# file1390 contents... +<data nocheck="yes"> +HTTP/1.1 200 OK +Date: Thu, 09 Nov 2010 14:49:00 GMT +Server: test-server/fake +Content-Length: 6 +Connection: close +Content-Type: text/html +Content-Disposition: filename=name1390; charset=funny; option=strange + +MOOOO +</data> +</reply> + +# Client-side +<client> +<server> +ftp +</server> +<name> +FTP DL, file with C-D inside, using -o fname -J -D stdout +</name> +<command option="no-output,no-include"> +ftp://%HOSTIP:%FTPPORT/path/file1390 -o log/download1390 -J -D - +</command> +<postcheck> +perl %SRCDIR/libtest/notexists.pl log/file1390 log/name1390 +</postcheck> +</client> + +# Verify data after the test has been "shot" +<verify> +<protocol> +USER anonymous +PASS ftp@example.com +PWD +CWD path +EPSV +TYPE I +SIZE file1390 +RETR file1390 +QUIT +</protocol> + +<file1 name="log/download1390"> +HTTP/1.1 200 OK +Date: Thu, 09 Nov 2010 14:49:00 GMT +Server: test-server/fake +Content-Length: 6 +Connection: close +Content-Type: text/html +Content-Disposition: filename=name1390; charset=funny; option=strange + +MOOOO +</file1> + +<file2 name="log/stdout1390"> +220- _ _ ____ _ +220- ___| | | | _ \| | +220- / __| | | | |_) | | +220- | (__| |_| | _ <| |___ +220 \___|\___/|_| \_\_____| +331 We are happy you popped in! +230 Welcome you silly person +257 "/" is current directory +250 CWD command successful. +229 Entering Passive Mode (stripped) +200 I modify TYPE as you wanted +213 214 +150 Binary data connection for 1390 () (214 bytes). +226 File transfer complete +221 bye bye baby +</file2> +<stripfile2> +s/^(229 Entering Passive Mode \().*(\).*)/${1}stripped${2}/ +</stripfile2> + +</verify> +</testcase> diff --git a/tests/data/test1391 b/tests/data/test1391 new file mode 100644 index 0000000000000000000000000000000000000000..fa7d89a669544089929a05bde167ef8fd77a971f --- /dev/null +++ b/tests/data/test1391 @@ -0,0 +1,92 @@ +<testcase> +<info> +<keywords> +FTP +RETR +</keywords> +</info> + +# Server-side +<reply> +# file1391 contents... +<data nocheck="yes"> +HTTP/1.1 200 OK +Date: Thu, 09 Nov 2010 14:49:00 GMT +Server: test-server/fake +Content-Length: 6 +Connection: close +Content-Type: text/html +Content-Disposition: filename=name1391; charset=funny; option=strange + +MOOOO +</data> +</reply> + +# Client-side +<client> +<server> +ftp +</server> +<name> +FTP DL, file with C-D inside, using -o fname -i -D file +</name> +<command option="no-output,no-include"> +ftp://%HOSTIP:%FTPPORT/path/file1391 -o log/download1391 -i -D log/heads1391 +</command> +<postcheck> +perl %SRCDIR/libtest/notexists.pl log/file1391 log/name1391 +</postcheck> +</client> + +# Verify data after the test has been "shot" +<verify> +<protocol> +USER anonymous +PASS ftp@example.com +PWD +CWD path +EPSV +TYPE I +SIZE file1391 +RETR file1391 +QUIT +</protocol> + +<file1 name="log/download1391"> +HTTP/1.1 200 OK +Date: Thu, 09 Nov 2010 14:49:00 GMT +Server: test-server/fake +Content-Length: 6 +Connection: close +Content-Type: text/html +Content-Disposition: filename=name1391; charset=funny; option=strange + +MOOOO +</file1> + +<file2 name="log/heads1391"> +220- _ _ ____ _ +220- ___| | | | _ \| | +220- / __| | | | |_) | | +220- | (__| |_| | _ <| |___ +220 \___|\___/|_| \_\_____| +331 We are happy you popped in! +230 Welcome you silly person +257 "/" is current directory +250 CWD command successful. +229 Entering Passive Mode (stripped) +200 I modify TYPE as you wanted +213 214 +150 Binary data connection for 1391 () (214 bytes). +226 File transfer complete +221 bye bye baby +</file2> +<stripfile2> +s/^(229 Entering Passive Mode \().*(\).*)/${1}stripped${2}/ +</stripfile2> + +<file3 name="log/stdout1391"> +</file3> + +</verify> +</testcase> diff --git a/tests/data/test1392 b/tests/data/test1392 new file mode 100644 index 0000000000000000000000000000000000000000..c1e8346a28169a3c99b6034d8c37dcdb072a5a1e --- /dev/null +++ b/tests/data/test1392 @@ -0,0 +1,89 @@ +<testcase> +<info> +<keywords> +FTP +RETR +</keywords> +</info> + +# Server-side +<reply> +# file1392 contents... +<data nocheck="yes"> +HTTP/1.1 200 OK +Date: Thu, 09 Nov 2010 14:49:00 GMT +Server: test-server/fake +Content-Length: 6 +Connection: close +Content-Type: text/html +Content-Disposition: filename=name1392; charset=funny; option=strange + +MOOOO +</data> +</reply> + +# Client-side +<client> +<server> +ftp +</server> +<name> +FTP DL, file with C-D inside, using -o fname -i -D stdout +</name> +<command option="no-output,no-include"> +ftp://%HOSTIP:%FTPPORT/path/file1392 -o log/download1392 -i -D - +</command> +<postcheck> +perl %SRCDIR/libtest/notexists.pl log/file1392 log/name1392 +</postcheck> +</client> + +# Verify data after the test has been "shot" +<verify> +<protocol> +USER anonymous +PASS ftp@example.com +PWD +CWD path +EPSV +TYPE I +SIZE file1392 +RETR file1392 +QUIT +</protocol> + +<file1 name="log/download1392"> +HTTP/1.1 200 OK +Date: Thu, 09 Nov 2010 14:49:00 GMT +Server: test-server/fake +Content-Length: 6 +Connection: close +Content-Type: text/html +Content-Disposition: filename=name1392; charset=funny; option=strange + +MOOOO +</file1> + +<file2 name="log/stdout1392"> +220- _ _ ____ _ +220- ___| | | | _ \| | +220- / __| | | | |_) | | +220- | (__| |_| | _ <| |___ +220 \___|\___/|_| \_\_____| +331 We are happy you popped in! +230 Welcome you silly person +257 "/" is current directory +250 CWD command successful. +229 Entering Passive Mode (stripped) +200 I modify TYPE as you wanted +213 214 +150 Binary data connection for 1392 () (214 bytes). +226 File transfer complete +221 bye bye baby +</file2> +<stripfile2> +s/^(229 Entering Passive Mode \().*(\).*)/${1}stripped${2}/ +</stripfile2> + +</verify> +</testcase> diff --git a/tests/data/test1393 b/tests/data/test1393 new file mode 100644 index 0000000000000000000000000000000000000000..9b51d4cb6d43af2ff31af9d82ae3961cfaff1182 --- /dev/null +++ b/tests/data/test1393 @@ -0,0 +1,89 @@ +<testcase> +<info> +<keywords> +FTP +RETR +</keywords> +</info> + +# Server-side +<reply> +# file1393 contents... +<data nocheck="yes"> +HTTP/1.1 200 OK +Date: Thu, 09 Nov 2010 14:49:00 GMT +Server: test-server/fake +Content-Length: 6 +Connection: close +Content-Type: text/html +Content-Disposition: filename=name1393; charset=funny; option=strange + +MOOOO +</data> +</reply> + +# Client-side +<client> +<server> +ftp +</server> +<name> +FTP DL, file with C-D inside, using -o fname -i, without -D +</name> +<command option="no-output,no-include"> +ftp://%HOSTIP:%FTPPORT/path/file1393 -o log/download1393 -i +</command> +<postcheck> +perl %SRCDIR/libtest/notexists.pl log/file1393 log/name1393 +</postcheck> +</client> + +# Verify data after the test has been "shot" +<verify> +<protocol> +USER anonymous +PASS ftp@example.com +PWD +CWD path +EPSV +TYPE I +SIZE file1393 +RETR file1393 +QUIT +</protocol> + +<file1 name="log/download1393"> +HTTP/1.1 200 OK +Date: Thu, 09 Nov 2010 14:49:00 GMT +Server: test-server/fake +Content-Length: 6 +Connection: close +Content-Type: text/html +Content-Disposition: filename=name1393; charset=funny; option=strange + +MOOOO +</file1> + +<file2 name="log/stdout1393"> +220- _ _ ____ _ +220- ___| | | | _ \| | +220- / __| | | | |_) | | +220- | (__| |_| | _ <| |___ +220 \___|\___/|_| \_\_____| +331 We are happy you popped in! +230 Welcome you silly person +257 "/" is current directory +250 CWD command successful. +229 Entering Passive Mode (stripped) +200 I modify TYPE as you wanted +213 214 +150 Binary data connection for 1393 () (214 bytes). +226 File transfer complete +221 bye bye baby +</file2> +<stripfile2> +s/^(229 Entering Passive Mode \().*(\).*)/${1}stripped${2}/ +</stripfile2> + +</verify> +</testcase>