xref: /curl/tests/data/test1233 (revision cd4aee15)
1<testcase>
2<info>
3<keywords>
4FTP
5connect to non-listen
6</keywords>
7</info>
8
9# Server-side
10<reply>
11<servercmd>
12# Assuming there's nothing listening on port 1
13REPLY EPSV 229 Entering Passiv Mode (|||1|)
14</servercmd>
15<data>
16here are some bytes
17</data>
18</reply>
19
20# Client-side
21<client>
22<server>
23ftp
24</server>
25<name>
26FTP failing to connect to EPSV port, switching to PASV
27</name>
28<command>
29ftp://%HOSTIP:%FTPPORT/%TESTNUMBER
30</command>
31</client>
32
33# Verify data after the test has been "shot"
34<verify>
35<strip>
36QUIT
37</strip>
38<protocol>
39USER anonymous
40PASS ftp@example.com
41PWD
42EPSV
43PASV
44TYPE I
45SIZE %TESTNUMBER
46RETR %TESTNUMBER
47QUIT
48</protocol>
49</verify>
50</testcase>
51