Imported Upstream version 7.59.0
[platform/upstream/curl.git] / tests / data / test564
1 <testcase>
2 # Warning: if this test fails to start the SSH server, check that none of
3 # the user's shell profiles sends output to stdout of a non-interactive shell.
4 <info>
5 <keywords>
6 FTP
7 PASV
8 RETR
9 multi
10 SOCKS4
11 </keywords>
12 </info>
13 # Server-side
14 <reply>
15 <data>
16 data
17     to
18       see
19 that FTP
20 works
21   so does it?
22 </data>
23
24 </reply>
25
26 # Client-side
27 <client>
28 <server>
29 ftp
30 socks4
31 </server>
32 <tool>
33 lib564
34 </tool>
35  <name>
36 FTP RETR a file over a SOCKS proxy using the multi interface
37  </name>
38 <command>
39 ftp://%HOSTIP:%FTPPORT/path/564 %HOSTIP:%SOCKSPORT
40 </command>
41 </client>
42
43 # Verify data after the test has been "shot"
44 <verify>
45 <protocol>
46 USER anonymous
47 PASS ftp@example.com
48 PWD
49 CWD path
50 EPSV
51 TYPE I
52 SIZE 564
53 RETR 564
54 QUIT
55 </protocol>
56 <stdout>
57 data
58     to
59       see
60 that FTP
61 works
62   so does it?
63 </stdout>
64 </verify>
65 </testcase>