blob: 175759a86537dd7f936bf3fc3c773fe35df72315 [file] [log] [blame]
xf.li6c8fc1e2023-08-12 00:11:09 -07001<testcase>
2<info>
3<keywords>
4FTP
5EPRT
6</keywords>
7</info>
8
9# Server-side
10<reply>
11<data>
12data blobb
13</data>
14<servercmd>
15REPLY EPRT 500 no such command
16</servercmd>
17</reply>
18
19# Client-side
20<client>
21<server>
22ftp
23</server>
24# EPRT is only sent when IPv6 is enabled
25<features>
26ipv6
27</features>
28 <name>
29Get two FTP files with no remote EPRT support
30 </name>
31 <command>
32ftp://%HOSTIP:%FTPPORT/a/path/%TESTNUMBER ftp://%HOSTIP:%FTPPORT/a/path/%TESTNUMBER -P -
33</command>
34<stdout>
35data blobb
36data blobb
37</stdout>
38</client>
39
40# Verify data after the test has been "shot"
41<verify>
42# Strip the addresses and port number but leave the rest
43<strippart>
44s/^(EPRT \|1\|)\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}\|\d{1,5}\|/$1/
45s/^(PORT )\d{1,3},\d{1,3},\d{1,3},\d{1,3},\d{1,3},\d{1,3}/$1/
46</strippart>
47<protocol>
48USER anonymous
49PASS ftp@example.com
50PWD
51CWD a
52CWD path
53EPRT |1|
54PORT
55TYPE I
56SIZE %TESTNUMBER
57RETR %TESTNUMBER
58PORT
59SIZE %TESTNUMBER
60RETR %TESTNUMBER
61QUIT
62</protocol>
63</verify>
64</testcase>