blob: 33214b04f275a574b4d25e6c9b23fe1509d9db4e [file] [log] [blame]
xf.li6c8fc1e2023-08-12 00:11:09 -07001<testcase>
2<info>
3<keywords>
4FTP
5PORT
6RETR
7no SIZE
8</keywords>
9</info>
10# Server-side
11<reply>
12<data>
13data
14 to
15 see
16that FTP
17works
18 so does it?
19</data>
20<servercmd>
21REPLY SIZE 502 no such command
22REPLY EPRT 502 no such command
23</servercmd>
24</reply>
25
26# Client-side
27<client>
28<server>
29ftp
30</server>
31 <name>
32FTP PORT without SIZE or EPRT support
33 </name>
34 <command>
35ftp://%HOSTIP:%FTPPORT/%TESTNUMBER -P -
36</command>
37</client>
38
39# Verify data after the test has been "shot"
40<verify>
41<strippart>
42s/^(EPRT \|1\|)(.*)/$1/
43s/^(PORT)(.*)/$1/
44</strippart>
45<protocol>
46USER anonymous
47PASS ftp@example.com
48PWD
49EPRT |1|
50PORT
51TYPE I
52SIZE %TESTNUMBER
53RETR %TESTNUMBER
54QUIT
55</protocol>
56</verify>
57</testcase>