xref: /curl/tests/data/test116 (revision cd4aee15)
1<testcase>
2<info>
3<keywords>
4FTP
5EPRT
6PORT
7FAILURE
8EPRT refused
9</keywords>
10</info>
11# Server-side
12<reply>
13<servercmd>
14REPLY EPRT 500 we don't like EPRT now
15REPLY PORT 314 bluah you f00l!
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>
29FTP download, failed PORT
30</name>
31<command>
32ftp://%HOSTIP:%FTPPORT/%TESTNUMBER -P 1.2.3.4
33</command>
34</client>
35
36# Verify data after the test has been "shot"
37<verify>
38<strip>
39QUIT
40</strip>
41<errorcode>
4230
43</errorcode>
44# Strip the port number but leave the rest
45<strippart>
46s/^(PORT \d{1,3},\d{1,3},\d{1,3},\d{1,3},)\d{1,3},\d{1,3}/$1/
47s/^(EPRT \|1\|\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}\|)\d{1,5}\|/$1/
48</strippart>
49<protocol>
50USER anonymous
51PASS ftp@example.com
52PWD
53EPRT |1|1.2.3.4|
54PORT 1,2,3,4,
55QUIT
56</protocol>
57</verify>
58</testcase>
59