• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<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/1414 -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 1414
53RETR 1414
54QUIT
55</protocol>
56</verify>
57</testcase>
58