tests 1364 to 1393: several -o filename -J -i -D combinations for HTTP and FTP

This commit is contained in:
Yang Tse 2012-06-07 17:45:37 +02:00
parent 430791616b
commit c41d959ee6
32 changed files with 2350 additions and 1 deletions

View File

@ -25,3 +25,23 @@
1338
1339
#
1370
1371
1385
1393
#
1368
1369
1379
1380
1381
1382
1383
1384
1387
1388
1389
1390
1391
1392
#

View File

@ -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

71
tests/data/test1364 Normal file
View File

@ -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>

68
tests/data/test1365 Normal file
View File

@ -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>

73
tests/data/test1366 Normal file
View File

@ -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>

70
tests/data/test1367 Normal file
View File

@ -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>

72
tests/data/test1368 Normal file
View File

@ -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>

69
tests/data/test1369 Normal file
View File

@ -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>

83
tests/data/test1370 Normal file
View File

@ -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>

80
tests/data/test1371 Normal file
View File

@ -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>

78
tests/data/test1372 Normal file
View File

@ -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>

75
tests/data/test1373 Normal file
View File

@ -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>

81
tests/data/test1374 Normal file
View File

@ -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>

78
tests/data/test1375 Normal file
View File

@ -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>

68
tests/data/test1376 Normal file
View File

@ -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>

70
tests/data/test1377 Normal file
View File

@ -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>

56
tests/data/test1378 Normal file
View File

@ -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>

77
tests/data/test1379 Normal file
View File

@ -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>

74
tests/data/test1380 Normal file
View File

@ -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>

78
tests/data/test1381 Normal file
View File

@ -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>

75
tests/data/test1382 Normal file
View File

@ -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>

77
tests/data/test1383 Normal file
View File

@ -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>

74
tests/data/test1384 Normal file
View File

@ -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>

74
tests/data/test1385 Normal file
View File

@ -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>

71
tests/data/test1386 Normal file
View File

@ -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>

92
tests/data/test1387 Normal file
View File

@ -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>

89
tests/data/test1388 Normal file
View File

@ -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>

93
tests/data/test1389 Normal file
View File

@ -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>

90
tests/data/test1390 Normal file
View File

@ -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>

92
tests/data/test1391 Normal file
View File

@ -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>

89
tests/data/test1392 Normal file
View File

@ -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>

89
tests/data/test1393 Normal file
View File

@ -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>