diff --git a/tests/data/DISABLED b/tests/data/DISABLED index d18bc7b27..60c10b094 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 e48a16812..7408547dc 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 000000000..fcdee484a --- /dev/null +++ b/tests/data/test1364 @@ -0,0 +1,71 @@ + + + +HTTP +HTTP GET + + + +# + + +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 + + + +# +# Client-side + + +http + + +HTTP GET -o fname without Content-Disposition, -D file + + +http://%HOSTIP:%HTTPPORT/1364 -o log/outfile1364 -D log/heads1364 + + +perl %SRCDIR/libtest/notexists.pl log/1364 + + + +# +# Verify data after the test has been "shot" + + +^User-Agent:.* + + +GET /1364 HTTP/1.1 +Host: %HOSTIP:%HTTPPORT +Accept: */* + + + + +12345 + + + +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 + + + + + + + + diff --git a/tests/data/test1365 b/tests/data/test1365 new file mode 100644 index 000000000..ee13165e6 --- /dev/null +++ b/tests/data/test1365 @@ -0,0 +1,68 @@ + + + +HTTP +HTTP GET + + + +# + + +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 + + + +# +# Client-side + + +http + + +HTTP GET -o fname without Content-Disposition, -D stdout + + +http://%HOSTIP:%HTTPPORT/1365 -o log/outfile1365 -D - + + +perl %SRCDIR/libtest/notexists.pl log/1365 + + + +# +# Verify data after the test has been "shot" + + +^User-Agent:.* + + +GET /1365 HTTP/1.1 +Host: %HOSTIP:%HTTPPORT +Accept: */* + + + + +12345 + + + +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 + + + + + diff --git a/tests/data/test1366 b/tests/data/test1366 new file mode 100644 index 000000000..d8e05abfe --- /dev/null +++ b/tests/data/test1366 @@ -0,0 +1,73 @@ + + + +HTTP +HTTP GET + + + +# + + +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 + + + +# +# Client-side + + +http + + +HTTP GET -o fname and Content-Disposition, -D file + + +http://%HOSTIP:%HTTPPORT/1366 -o log/outfile1366 -D log/heads1366 + + +perl %SRCDIR/libtest/notexists.pl log/1366 log/name1366 + + + +# +# Verify data after the test has been "shot" + + +^User-Agent:.* + + +GET /1366 HTTP/1.1 +Host: %HOSTIP:%HTTPPORT +Accept: */* + + + + +12345 + + + +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 + + + + + + + + diff --git a/tests/data/test1367 b/tests/data/test1367 new file mode 100644 index 000000000..fcb23f580 --- /dev/null +++ b/tests/data/test1367 @@ -0,0 +1,70 @@ + + + +HTTP +HTTP GET + + + +# + + +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 + + + +# +# Client-side + + +http + + +HTTP GET -o fname and Content-Disposition, -D stdout + + +http://%HOSTIP:%HTTPPORT/1367 -o log/outfile1367 -D - + + +perl %SRCDIR/libtest/notexists.pl log/1367 log/name1367 + + + +# +# Verify data after the test has been "shot" + + +^User-Agent:.* + + +GET /1367 HTTP/1.1 +Host: %HOSTIP:%HTTPPORT +Accept: */* + + + + +12345 + + + +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 + + + + + diff --git a/tests/data/test1368 b/tests/data/test1368 new file mode 100644 index 000000000..37f058c22 --- /dev/null +++ b/tests/data/test1368 @@ -0,0 +1,72 @@ + + + +HTTP +HTTP GET +-J + + + +# + + +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 + + + +# +# Client-side + + +http + + +HTTP GET -o fname -J without Content-Disposition, -D file + + +http://%HOSTIP:%HTTPPORT/1368 -J -o log/outfile1368 -D log/heads1368 + + +perl %SRCDIR/libtest/notexists.pl log/1368 + + + +# +# Verify data after the test has been "shot" + + +^User-Agent:.* + + +GET /1368 HTTP/1.1 +Host: %HOSTIP:%HTTPPORT +Accept: */* + + + + +12345 + + + +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 + + + + + + + + diff --git a/tests/data/test1369 b/tests/data/test1369 new file mode 100644 index 000000000..9b272e276 --- /dev/null +++ b/tests/data/test1369 @@ -0,0 +1,69 @@ + + + +HTTP +HTTP GET +-J + + + +# + + +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 + + + +# +# Client-side + + +http + + +HTTP GET -o fname -J without Content-Disposition, -D stdout + + +http://%HOSTIP:%HTTPPORT/1369 -J -o log/outfile1369 -D - + + +perl %SRCDIR/libtest/notexists.pl log/1369 + + + +# +# Verify data after the test has been "shot" + + +^User-Agent:.* + + +GET /1369 HTTP/1.1 +Host: %HOSTIP:%HTTPPORT +Accept: */* + + + + +12345 + + + +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 + + + + + diff --git a/tests/data/test1370 b/tests/data/test1370 new file mode 100644 index 000000000..91e95c463 --- /dev/null +++ b/tests/data/test1370 @@ -0,0 +1,83 @@ + + + +HTTP +HTTP GET +-J + + + +# + + +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 + + + +# +# Client-side + +# this relies on the debug feature to allow us to set directory to store the +# -J output in, using the CURL_TESTDIR variable + +debug + + +http + + +HTTP GET -o fname -J and Content-Disposition, -D file + + +CURL_TESTDIR=%PWD/log + + +http://%HOSTIP:%HTTPPORT/1370 -J -o log/outfile1370 -D log/heads1370 + + +perl %SRCDIR/libtest/notexists.pl log/1370 + + + +# +# Verify data after the test has been "shot" + + +^User-Agent:.* + + +GET /1370 HTTP/1.1 +Host: %HOSTIP:%HTTPPORT +Accept: */* + + + + +12345 + + + +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 + + + + +curl: Saved to filename '%PWD/log/name1370' + + + + diff --git a/tests/data/test1371 b/tests/data/test1371 new file mode 100644 index 000000000..6313d5665 --- /dev/null +++ b/tests/data/test1371 @@ -0,0 +1,80 @@ + + + +HTTP +HTTP GET +-J + + + +# + + +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 + + + +# +# Client-side + +# this relies on the debug feature to allow us to set directory to store the +# -J output in, using the CURL_TESTDIR variable + +debug + + +http + + +HTTP GET -o fname -J and Content-Disposition, -D stdout + + +CURL_TESTDIR=%PWD/log + + +http://%HOSTIP:%HTTPPORT/1371 -J -o log/outfile1371 -D - + + +perl %SRCDIR/libtest/notexists.pl log/1371 + + + +# +# Verify data after the test has been "shot" + + +^User-Agent:.* + + +GET /1371 HTTP/1.1 +Host: %HOSTIP:%HTTPPORT +Accept: */* + + + + +12345 + + + +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' + + + + diff --git a/tests/data/test1372 b/tests/data/test1372 new file mode 100644 index 000000000..30a64aaa1 --- /dev/null +++ b/tests/data/test1372 @@ -0,0 +1,78 @@ + + + +HTTP +HTTP GET + + + +# + + +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 + + + +# +# Client-side + + +http + + +HTTP GET -o fname -i without Content-Disposition, -D file + + +http://%HOSTIP:%HTTPPORT/1372 -i -o log/outfile1372 -D log/heads1372 + + +perl %SRCDIR/libtest/notexists.pl log/1372 + + + +# +# Verify data after the test has been "shot" + + +^User-Agent:.* + + +GET /1372 HTTP/1.1 +Host: %HOSTIP:%HTTPPORT +Accept: */* + + + + +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 + + + +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 + + + + + + + + diff --git a/tests/data/test1373 b/tests/data/test1373 new file mode 100644 index 000000000..2ad283035 --- /dev/null +++ b/tests/data/test1373 @@ -0,0 +1,75 @@ + + + +HTTP +HTTP GET + + + +# + + +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 + + + +# +# Client-side + + +http + + +HTTP GET -o fname -i without Content-Disposition, -D stdout + + +http://%HOSTIP:%HTTPPORT/1373 -i -o log/outfile1373 -D - + + +perl %SRCDIR/libtest/notexists.pl log/1373 + + + +# +# Verify data after the test has been "shot" + + +^User-Agent:.* + + +GET /1373 HTTP/1.1 +Host: %HOSTIP:%HTTPPORT +Accept: */* + + + + +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 + + + +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 + + + + + diff --git a/tests/data/test1374 b/tests/data/test1374 new file mode 100644 index 000000000..6ffe88d56 --- /dev/null +++ b/tests/data/test1374 @@ -0,0 +1,81 @@ + + + +HTTP +HTTP GET + + + +# + + +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 + + + +# +# Client-side + + +http + + +HTTP GET -o fname -i and Content-Disposition, -D file + + +http://%HOSTIP:%HTTPPORT/1374 -i -o log/outfile1374 -D log/heads1374 + + +perl %SRCDIR/libtest/notexists.pl log/1374 log/name1374 + + + +# +# Verify data after the test has been "shot" + + +^User-Agent:.* + + +GET /1374 HTTP/1.1 +Host: %HOSTIP:%HTTPPORT +Accept: */* + + + + +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 + + + +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 + + + + + + + + diff --git a/tests/data/test1375 b/tests/data/test1375 new file mode 100644 index 000000000..a1cc5a00e --- /dev/null +++ b/tests/data/test1375 @@ -0,0 +1,78 @@ + + + +HTTP +HTTP GET + + + +# + + +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 + + + +# +# Client-side + + +http + + +HTTP GET -o fname -i and Content-Disposition, -D stdout + + +http://%HOSTIP:%HTTPPORT/1375 -i -o log/outfile1375 -D - + + +perl %SRCDIR/libtest/notexists.pl log/1375 log/name1375 + + + +# +# Verify data after the test has been "shot" + + +^User-Agent:.* + + +GET /1375 HTTP/1.1 +Host: %HOSTIP:%HTTPPORT +Accept: */* + + + + +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 + + + +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 + + + + + diff --git a/tests/data/test1376 b/tests/data/test1376 new file mode 100644 index 000000000..3280874a6 --- /dev/null +++ b/tests/data/test1376 @@ -0,0 +1,68 @@ + + + +HTTP +HTTP GET + + + +# + + +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 + + + +# +# Client-side + + +http + + +HTTP GET -o fname -i without Content-Disposition, without -D + + +http://%HOSTIP:%HTTPPORT/1376 -i -o log/outfile1376 + + +perl %SRCDIR/libtest/notexists.pl log/1376 + + + +# +# Verify data after the test has been "shot" + + +^User-Agent:.* + + +GET /1376 HTTP/1.1 +Host: %HOSTIP:%HTTPPORT +Accept: */* + + + + +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 + + + + + + + diff --git a/tests/data/test1377 b/tests/data/test1377 new file mode 100644 index 000000000..735355f5f --- /dev/null +++ b/tests/data/test1377 @@ -0,0 +1,70 @@ + + + +HTTP +HTTP GET + + + +# + + +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 + + + +# +# Client-side + + +http + + +HTTP GET -o fname -i and Content-Disposition, without -D + + +http://%HOSTIP:%HTTPPORT/1377 -i -o log/outfile1377 + + +perl %SRCDIR/libtest/notexists.pl log/1377 log/name1377 + + + +# +# Verify data after the test has been "shot" + + +^User-Agent:.* + + +GET /1377 HTTP/1.1 +Host: %HOSTIP:%HTTPPORT +Accept: */* + + + + +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 + + + + + + + diff --git a/tests/data/test1378 b/tests/data/test1378 new file mode 100644 index 000000000..e004afcaf --- /dev/null +++ b/tests/data/test1378 @@ -0,0 +1,56 @@ + + + +FTP +RETR + + + +# Server-side + + +fooo +mooo + + + +# Client-side + + +ftp + + +FTP DL, file without Content-Disposition inside, using -o fname + + +ftp://%HOSTIP:%FTPPORT/path/file1378 -o log/download1378 + + +perl %SRCDIR/libtest/notexists.pl log/file1378 + + + +# Verify data after the test has been "shot" + + +USER anonymous +PASS ftp@example.com +PWD +CWD path +EPSV +TYPE I +SIZE file1378 +RETR file1378 +QUIT + + + +fooo +mooo + + + + + + + diff --git a/tests/data/test1379 b/tests/data/test1379 new file mode 100644 index 000000000..26552c8fa --- /dev/null +++ b/tests/data/test1379 @@ -0,0 +1,77 @@ + + + +FTP +RETR + + + +# Server-side + + +fooo +mooo + + + +# Client-side + + +ftp + + +FTP DL, file without C-D inside, using -o fname -D file + + +ftp://%HOSTIP:%FTPPORT/path/file1379 -o log/download1379 -D log/heads1379 + + +perl %SRCDIR/libtest/notexists.pl log/file1379 + + + +# Verify data after the test has been "shot" + + +USER anonymous +PASS ftp@example.com +PWD +CWD path +EPSV +TYPE I +SIZE file1379 +RETR file1379 +QUIT + + + +fooo +mooo + + + +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 + + +s/^(229 Entering Passive Mode \().*(\).*)/${1}stripped${2}/ + + + + + + + diff --git a/tests/data/test1380 b/tests/data/test1380 new file mode 100644 index 000000000..060b4b0b8 --- /dev/null +++ b/tests/data/test1380 @@ -0,0 +1,74 @@ + + + +FTP +RETR + + + +# Server-side + + +fooo +mooo + + + +# Client-side + + +ftp + + +FTP DL, file without C-D inside, using -o fname -D stdout + + +ftp://%HOSTIP:%FTPPORT/path/file1380 -o log/download1380 -D - + + +perl %SRCDIR/libtest/notexists.pl log/file1380 + + + +# Verify data after the test has been "shot" + + +USER anonymous +PASS ftp@example.com +PWD +CWD path +EPSV +TYPE I +SIZE file1380 +RETR file1380 +QUIT + + + +fooo +mooo + + + +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 + + +s/^(229 Entering Passive Mode \().*(\).*)/${1}stripped${2}/ + + + + diff --git a/tests/data/test1381 b/tests/data/test1381 new file mode 100644 index 000000000..c82ac745d --- /dev/null +++ b/tests/data/test1381 @@ -0,0 +1,78 @@ + + + +FTP +RETR +-J + + + +# Server-side + + +fooo +mooo + + + +# Client-side + + +ftp + + +FTP DL, file without C-D inside, using -o fname -J -D file + + +ftp://%HOSTIP:%FTPPORT/path/file1381 -o log/download1381 -J -D log/heads1381 + + +perl %SRCDIR/libtest/notexists.pl log/file1381 + + + +# Verify data after the test has been "shot" + + +USER anonymous +PASS ftp@example.com +PWD +CWD path +EPSV +TYPE I +SIZE file1381 +RETR file1381 +QUIT + + + +fooo +mooo + + + +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 + + +s/^(229 Entering Passive Mode \().*(\).*)/${1}stripped${2}/ + + + + + + + diff --git a/tests/data/test1382 b/tests/data/test1382 new file mode 100644 index 000000000..5e5513f38 --- /dev/null +++ b/tests/data/test1382 @@ -0,0 +1,75 @@ + + + +FTP +RETR +-J + + + +# Server-side + + +fooo +mooo + + + +# Client-side + + +ftp + + +FTP DL, file without C-D inside, using -o fname -J -D stdout + + +ftp://%HOSTIP:%FTPPORT/path/file1382 -o log/download1382 -J -D - + + +perl %SRCDIR/libtest/notexists.pl log/file1382 + + + +# Verify data after the test has been "shot" + + +USER anonymous +PASS ftp@example.com +PWD +CWD path +EPSV +TYPE I +SIZE file1382 +RETR file1382 +QUIT + + + +fooo +mooo + + + +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 + + +s/^(229 Entering Passive Mode \().*(\).*)/${1}stripped${2}/ + + + + diff --git a/tests/data/test1383 b/tests/data/test1383 new file mode 100644 index 000000000..2604faf96 --- /dev/null +++ b/tests/data/test1383 @@ -0,0 +1,77 @@ + + + +FTP +RETR + + + +# Server-side + + +fooo +mooo + + + +# Client-side + + +ftp + + +FTP DL, file without C-D inside, using -o fname -i -D file + + +ftp://%HOSTIP:%FTPPORT/path/file1383 -o log/download1383 -i -D log/heads1383 + + +perl %SRCDIR/libtest/notexists.pl log/file1383 + + + +# Verify data after the test has been "shot" + + +USER anonymous +PASS ftp@example.com +PWD +CWD path +EPSV +TYPE I +SIZE file1383 +RETR file1383 +QUIT + + + +fooo +mooo + + + +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 + + +s/^(229 Entering Passive Mode \().*(\).*)/${1}stripped${2}/ + + + + + + + diff --git a/tests/data/test1384 b/tests/data/test1384 new file mode 100644 index 000000000..289aa9bdb --- /dev/null +++ b/tests/data/test1384 @@ -0,0 +1,74 @@ + + + +FTP +RETR + + + +# Server-side + + +fooo +mooo + + + +# Client-side + + +ftp + + +FTP DL, file without C-D inside, using -o fname -i -D stdout + + +ftp://%HOSTIP:%FTPPORT/path/file1384 -o log/download1384 -i -D - + + +perl %SRCDIR/libtest/notexists.pl log/file1384 + + + +# Verify data after the test has been "shot" + + +USER anonymous +PASS ftp@example.com +PWD +CWD path +EPSV +TYPE I +SIZE file1384 +RETR file1384 +QUIT + + + +fooo +mooo + + + +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 + + +s/^(229 Entering Passive Mode \().*(\).*)/${1}stripped${2}/ + + + + diff --git a/tests/data/test1385 b/tests/data/test1385 new file mode 100644 index 000000000..ca04b606c --- /dev/null +++ b/tests/data/test1385 @@ -0,0 +1,74 @@ + + + +FTP +RETR + + + +# Server-side + + +fooo +mooo + + + +# Client-side + + +ftp + + +FTP DL, file without C-D inside, using -o fname -i, without -D + + +ftp://%HOSTIP:%FTPPORT/path/file1385 -o log/download1385 -i + + +perl %SRCDIR/libtest/notexists.pl log/file1385 + + + +# Verify data after the test has been "shot" + + +USER anonymous +PASS ftp@example.com +PWD +CWD path +EPSV +TYPE I +SIZE file1385 +RETR file1385 +QUIT + + + +fooo +mooo + + + +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 + + +s/^(229 Entering Passive Mode \().*(\).*)/${1}stripped${2}/ + + + + diff --git a/tests/data/test1386 b/tests/data/test1386 new file mode 100644 index 000000000..883b40883 --- /dev/null +++ b/tests/data/test1386 @@ -0,0 +1,71 @@ + + + +FTP +RETR + + + +# Server-side + +# file1386 contents... + +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 + + + +# Client-side + + +ftp + + +FTP DL, file with Content-Disposition inside, using -o fname + + +ftp://%HOSTIP:%FTPPORT/path/file1386 -o log/download1386 + + +perl %SRCDIR/libtest/notexists.pl log/file1386 log/name1386 + + + +# Verify data after the test has been "shot" + + +USER anonymous +PASS ftp@example.com +PWD +CWD path +EPSV +TYPE I +SIZE file1386 +RETR file1386 +QUIT + + + +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 + + + + + + + diff --git a/tests/data/test1387 b/tests/data/test1387 new file mode 100644 index 000000000..6628b8963 --- /dev/null +++ b/tests/data/test1387 @@ -0,0 +1,92 @@ + + + +FTP +RETR + + + +# Server-side + +# file1387 contents... + +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 + + + +# Client-side + + +ftp + + +FTP DL, file with C-D inside, using -o fname -D file + + +ftp://%HOSTIP:%FTPPORT/path/file1387 -o log/download1387 -D log/heads1387 + + +perl %SRCDIR/libtest/notexists.pl log/file1387 log/name1387 + + + +# Verify data after the test has been "shot" + + +USER anonymous +PASS ftp@example.com +PWD +CWD path +EPSV +TYPE I +SIZE file1387 +RETR file1387 +QUIT + + + +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 + + + +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 + + +s/^(229 Entering Passive Mode \().*(\).*)/${1}stripped${2}/ + + + + + + + diff --git a/tests/data/test1388 b/tests/data/test1388 new file mode 100644 index 000000000..478a2e9fa --- /dev/null +++ b/tests/data/test1388 @@ -0,0 +1,89 @@ + + + +FTP +RETR + + + +# Server-side + +# file1388 contents... + +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 + + + +# Client-side + + +ftp + + +FTP DL, file with C-D inside, using -o fname -D stdout + + +ftp://%HOSTIP:%FTPPORT/path/file1388 -o log/download1388 -D - + + +perl %SRCDIR/libtest/notexists.pl log/file1388 log/name1388 + + + +# Verify data after the test has been "shot" + + +USER anonymous +PASS ftp@example.com +PWD +CWD path +EPSV +TYPE I +SIZE file1388 +RETR file1388 +QUIT + + + +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 + + + +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 + + +s/^(229 Entering Passive Mode \().*(\).*)/${1}stripped${2}/ + + + + diff --git a/tests/data/test1389 b/tests/data/test1389 new file mode 100644 index 000000000..06b9c26b1 --- /dev/null +++ b/tests/data/test1389 @@ -0,0 +1,93 @@ + + + +FTP +RETR +-J + + + +# Server-side + +# file1389 contents... + +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 + + + +# Client-side + + +ftp + + +FTP DL, file with C-D inside, using -o fname -J -D file + + +ftp://%HOSTIP:%FTPPORT/path/file1389 -o log/download1389 -J -D log/heads1389 + + +perl %SRCDIR/libtest/notexists.pl log/file1389 log/name1389 + + + +# Verify data after the test has been "shot" + + +USER anonymous +PASS ftp@example.com +PWD +CWD path +EPSV +TYPE I +SIZE file1389 +RETR file1389 +QUIT + + + +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 + + + +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 + + +s/^(229 Entering Passive Mode \().*(\).*)/${1}stripped${2}/ + + + + + + + diff --git a/tests/data/test1390 b/tests/data/test1390 new file mode 100644 index 000000000..b5980369e --- /dev/null +++ b/tests/data/test1390 @@ -0,0 +1,90 @@ + + + +FTP +RETR +-J + + + +# Server-side + +# file1390 contents... + +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 + + + +# Client-side + + +ftp + + +FTP DL, file with C-D inside, using -o fname -J -D stdout + + +ftp://%HOSTIP:%FTPPORT/path/file1390 -o log/download1390 -J -D - + + +perl %SRCDIR/libtest/notexists.pl log/file1390 log/name1390 + + + +# Verify data after the test has been "shot" + + +USER anonymous +PASS ftp@example.com +PWD +CWD path +EPSV +TYPE I +SIZE file1390 +RETR file1390 +QUIT + + + +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 + + + +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 + + +s/^(229 Entering Passive Mode \().*(\).*)/${1}stripped${2}/ + + + + diff --git a/tests/data/test1391 b/tests/data/test1391 new file mode 100644 index 000000000..fa7d89a66 --- /dev/null +++ b/tests/data/test1391 @@ -0,0 +1,92 @@ + + + +FTP +RETR + + + +# Server-side + +# file1391 contents... + +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 + + + +# Client-side + + +ftp + + +FTP DL, file with C-D inside, using -o fname -i -D file + + +ftp://%HOSTIP:%FTPPORT/path/file1391 -o log/download1391 -i -D log/heads1391 + + +perl %SRCDIR/libtest/notexists.pl log/file1391 log/name1391 + + + +# Verify data after the test has been "shot" + + +USER anonymous +PASS ftp@example.com +PWD +CWD path +EPSV +TYPE I +SIZE file1391 +RETR file1391 +QUIT + + + +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 + + + +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 + + +s/^(229 Entering Passive Mode \().*(\).*)/${1}stripped${2}/ + + + + + + + diff --git a/tests/data/test1392 b/tests/data/test1392 new file mode 100644 index 000000000..c1e8346a2 --- /dev/null +++ b/tests/data/test1392 @@ -0,0 +1,89 @@ + + + +FTP +RETR + + + +# Server-side + +# file1392 contents... + +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 + + + +# Client-side + + +ftp + + +FTP DL, file with C-D inside, using -o fname -i -D stdout + + +ftp://%HOSTIP:%FTPPORT/path/file1392 -o log/download1392 -i -D - + + +perl %SRCDIR/libtest/notexists.pl log/file1392 log/name1392 + + + +# Verify data after the test has been "shot" + + +USER anonymous +PASS ftp@example.com +PWD +CWD path +EPSV +TYPE I +SIZE file1392 +RETR file1392 +QUIT + + + +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 + + + +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 + + +s/^(229 Entering Passive Mode \().*(\).*)/${1}stripped${2}/ + + + + diff --git a/tests/data/test1393 b/tests/data/test1393 new file mode 100644 index 000000000..9b51d4cb6 --- /dev/null +++ b/tests/data/test1393 @@ -0,0 +1,89 @@ + + + +FTP +RETR + + + +# Server-side + +# file1393 contents... + +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 + + + +# Client-side + + +ftp + + +FTP DL, file with C-D inside, using -o fname -i, without -D + + +ftp://%HOSTIP:%FTPPORT/path/file1393 -o log/download1393 -i + + +perl %SRCDIR/libtest/notexists.pl log/file1393 log/name1393 + + + +# Verify data after the test has been "shot" + + +USER anonymous +PASS ftp@example.com +PWD +CWD path +EPSV +TYPE I +SIZE file1393 +RETR file1393 +QUIT + + + +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 + + + +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 + + +s/^(229 Entering Passive Mode \().*(\).*)/${1}stripped${2}/ + + + +