1<testcase>
2<info>
3<keywords>
4FTP
5RETR
6</keywords>
7</info>
8
9# Server-side
10<reply>
11<data nocheck="yes">
12fooo
13mooo
14</data>
15</reply>
16
17# Client-side
18<client>
19# this relies on the debug feature to allow us to set directory to store the
20# -O output in, using the CURL_TESTDIR variable
21<features>
22debug
23</features>
24<server>
25ftp
26</server>
27<name>
28FTP download, file without C-D inside, using -O -i -D stdout
29</name>
30<setenv>
31CURL_TESTDIR=%PWD/log
32</setenv>
33<command option="no-output,no-include">
34ftp://%HOSTIP:%FTPPORT/path/file1354 -O -i -D -
35</command>
36</client>
37
38# Verify data after the test has been "shot"
39<verify>
40<protocol>
41USER anonymous
42PASS ftp@example.com
43PWD
44CWD path
45EPSV
46TYPE I
47SIZE file1354
48RETR file1354
49QUIT
50</protocol>
51
52<file1 name="log/file1354">
53fooo
54mooo
55</file1>
56
57<file2 name="log/stdout1354">
58220-        _   _ ____  _     
59220-    ___| | | |  _ \| |    
60220-   / __| | | | |_) | |    
61220-  | (__| |_| |  _ {| |___ 
62220    \___|\___/|_| \_\_____|
63331 We are happy you popped in!
64230 Welcome you silly person
65257 "/" is current directory
66250 CWD command successful.
67229 Entering Passive Mode (stripped)
68200 I modify TYPE as you wanted
69213 10
70150 Binary data connection for 1354 () (10 bytes).
71226 File transfer complete
72</file2>
73<stripfile2>
74s/^(229 Entering Passive Mode \().*(\).*)/${1}stripped${2}/
75</stripfile2>
76
77</verify>
78</testcase>
79