xf.li | 6c8fc1e | 2023-08-12 00:11:09 -0700 | [diff] [blame^] | 1 | <testcase> |
| 2 | <info> |
| 3 | <keywords> |
| 4 | FTP |
| 5 | PASV |
| 6 | TYPE A |
| 7 | RETR |
| 8 | </keywords> |
| 9 | </info> |
| 10 | # Server-side |
| 11 | <reply> |
| 12 | <data> |
| 13 | data |
| 14 | to |
| 15 | see |
| 16 | that FTP |
| 17 | works |
| 18 | so does it? |
| 19 | </data> |
| 20 | <datacheck nonewline="yes"> |
| 21 | data |
| 22 | </datacheck> |
| 23 | <servercmd> |
| 24 | REPLY EPSV 500 no such command |
| 25 | REPLY SIZE 500 no such command |
| 26 | </servercmd> |
| 27 | </reply> |
| 28 | |
| 29 | # Client-side |
| 30 | <client> |
| 31 | <server> |
| 32 | ftp |
| 33 | </server> |
| 34 | <name> |
| 35 | FTP range download when SIZE doesn't work |
| 36 | </name> |
| 37 | <command> |
| 38 | ftp://%HOSTIP:%FTPPORT/%TESTNUMBER --range 3-6 |
| 39 | </command> |
| 40 | </client> |
| 41 | |
| 42 | # Verify data after the test has been "shot" |
| 43 | <verify> |
| 44 | <protocol> |
| 45 | USER anonymous
|
| 46 | PASS ftp@example.com
|
| 47 | PWD
|
| 48 | EPSV
|
| 49 | PASV
|
| 50 | TYPE I
|
| 51 | SIZE %TESTNUMBER
|
| 52 | REST 3
|
| 53 | RETR %TESTNUMBER
|
| 54 | ABOR
|
| 55 | QUIT
|
| 56 | </protocol> |
| 57 | </verify> |
| 58 | </testcase> |