xref: /curl/tests/data/test588 (revision cd4aee15)
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>
49QUIT
50</strip>
51# Strip off parts of the PORT and EPRT commands that might differ
52<strippart>
53s/^PORT (.*)/PORT/
54s/^EPRT \|1\|(.*)/EPRT \|1\|/
55</strippart>
56<protocol>
57USER anonymous
58PASS ftp@example.com
59PWD
60CWD path
61EPRT |1|
62PORT
63TYPE I
64STOR %TESTNUMBER
65QUIT
66</protocol>
67<upload>
68Moooooooooooo
69 upload this
70</upload>
71</verify>
72</testcase>
73