xref: /curl/tests/data/test588 (revision 3fd80c7b)
1<testcase>
2#
3# This test is exactly like 525 but the server rejects the EPRT command.
4# Written up to make sure that there's nothing in the multi interface
5# active connection case that differs between PORT and EPRT use
6#
7<info>
8<keywords>
9FTP
10PORT
11STOR
12multi
13EPRT refused
14</keywords>
15</info>
16
17# Server-side
18<reply>
19<data>
20</data>
21<servercmd>
22REPLY EPRT 500 we don't like EPRT now
23</servercmd>
24</reply>
25
26# Client-side
27<client>
28<server>
29ftp
30</server>
31<tool>
32lib525
33</tool>
34<name>
35FTP PORT upload using multi interface, EPRT doesn't work
36</name>
37<command>
38ftp://%HOSTIP:%FTPPORT/path/%TESTNUMBER %LOGDIR/upload%TESTNUMBER
39</command>
40<file name="%LOGDIR/upload%TESTNUMBER">
41Moooooooooooo
42 upload this
43</file>
44</client>
45
46# Verify data after the test has been "shot"
47<verify>
48# Strip off parts of the PORT and EPRT commands that might differ
49<strippart>
50s/^PORT (.*)/PORT/
51s/^EPRT \|1\|(.*)/EPRT \|1\|/
52</strippart>
53<protocol>
54USER anonymous
55PASS ftp@example.com
56PWD
57CWD path
58EPRT |1|
59PORT
60TYPE I
61STOR %TESTNUMBER
62QUIT
63</protocol>
64<upload>
65Moooooooooooo
66 upload this
67</upload>
68</verify>
69</testcase>
70