xref: /curl/tests/data/test103 (revision cd4aee15)
1<testcase>
2<info>
3<keywords>
4FTP
5PORT
6RETR
7</keywords>
8</info>
9# Server-side
10<reply>
11<data>
12data
13    to
14      see
15that FTP
16works
17  so does it?
18</data>
19</reply>
20
21# Client-side
22<client>
23<server>
24ftp
25</server>
26<name>
27FTP RETR PORT with CWD
28</name>
29<command>
30ftp://%HOSTIP:%FTPPORT/a/path/%TESTNUMBER -P -
31</command>
32</client>
33
34# Verify data after the test has been "shot"
35<verify>
36<strip>
37QUIT
38</strip>
39# Strip all valid kinds of PORT and EPRT that curl can send
40<strip>
41^PORT \d{1,3},\d{1,3},\d{1,3},\d{1,3},\d{1,3},\d{1,3}
42^EPRT \|1\|\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}\|\d{1,5}\|
43</strip>
44<protocol>
45USER anonymous
46PASS ftp@example.com
47PWD
48CWD a
49CWD path
50PORT 127,0,0,1,0,0
51TYPE I
52SIZE %TESTNUMBER
53RETR %TESTNUMBER
54QUIT
55</protocol>
56</verify>
57</testcase>
58