xref: /curl/tests/data/test1414 (revision cd4aee15)
1<testcase>
2<info>
3<keywords>
4FTP
5PORT
6RETR
7no SIZE
8</keywords>
9</info>
10# Server-side
11<reply>
12<data>
13data
14    to
15      see
16that FTP
17works
18  so does it?
19</data>
20<servercmd>
21REPLY SIZE 502 no such command
22REPLY EPRT 502 no such command
23</servercmd>
24</reply>
25
26# Client-side
27<client>
28<server>
29ftp
30</server>
31<name>
32FTP PORT without SIZE or EPRT support
33</name>
34<command>
35ftp://%HOSTIP:%FTPPORT/%TESTNUMBER -P -
36</command>
37</client>
38
39# Verify data after the test has been "shot"
40<verify>
41<strip>
42QUIT
43</strip>
44<strippart>
45s/^(EPRT \|1\|)(.*)/$1/
46s/^(PORT)(.*)/$1/
47</strippart>
48<protocol>
49USER anonymous
50PASS ftp@example.com
51PWD
52EPRT |1|
53PORT
54TYPE I
55SIZE %TESTNUMBER
56RETR %TESTNUMBER
57QUIT
58</protocol>
59</verify>
60</testcase>
61