xf.li | 6c8fc1e | 2023-08-12 00:11:09 -0700 | [diff] [blame^] | 1 | <testcase> |
2 | <info> | ||||
3 | <keywords> | ||||
4 | FTP | ||||
5 | RETR | ||||
6 | </keywords> | ||||
7 | </info> | ||||
8 | # Server-side | ||||
9 | <reply> | ||||
10 | <data> | ||||
11 | this is file contents | ||||
12 | </data> | ||||
13 | <size> | ||||
14 | -1 | ||||
15 | </size> | ||||
16 | <servercmd> | ||||
17 | RETRNOSIZE | ||||
18 | REPLY SIZE 500 command not understood | ||||
19 | </servercmd> | ||||
20 | </reply> | ||||
21 | |||||
22 | # Client-side | ||||
23 | <client> | ||||
24 | <server> | ||||
25 | ftp | ||||
26 | </server> | ||||
27 | <name> | ||||
28 | FTP download without size in RETR string and no SIZE command | ||||
29 | </name> | ||||
30 | <command> | ||||
31 | ftp://%HOSTIP:%FTPPORT/blalbla/lululul/%TESTNUMBER | ||||
32 | </command> | ||||
33 | </client> | ||||
34 | |||||
35 | # Verify data after the test has been "shot" | ||||
36 | <verify> | ||||
37 | <protocol> | ||||
38 | USER anonymous | ||||
39 | PASS ftp@example.com | ||||
40 | PWD | ||||
41 | CWD blalbla | ||||
42 | CWD lululul | ||||
43 | EPSV | ||||
44 | TYPE I | ||||
45 | SIZE %TESTNUMBER | ||||
46 | RETR %TESTNUMBER | ||||
47 | QUIT | ||||
48 | </protocol> | ||||
49 | </verify> | ||||
50 | </testcase> |