xref: /curl/tests/data/test1379 (revision e7a021e1)
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<server>
20ftp
21</server>
22<name>
23FTP DL, file without C-D inside, using -o fname -D file
24</name>
25<command option="no-output,no-include">
26ftp://%HOSTIP:%FTPPORT/path/file%TESTNUMBER -o %LOGDIR/download%TESTNUMBER -D %LOGDIR/heads%TESTNUMBER
27</command>
28<postcheck>
29perl %SRCDIR/libtest/notexists.pl %LOGDIR/file%TESTNUMBER
30</postcheck>
31</client>
32
33# Verify data after the test has been "shot"
34<verify>
35<protocol>
36USER anonymous
37PASS ftp@example.com
38PWD
39CWD path
40EPSV
41TYPE I
42SIZE file%TESTNUMBER
43RETR file%TESTNUMBER
44QUIT
45</protocol>
46
47<file1 name="%LOGDIR/download%TESTNUMBER">
48fooo
49mooo
50</file1>
51
52<file2 name="%LOGDIR/heads%TESTNUMBER">
53220-        _   _ ____  _
54220-    ___| | | |  _ \| |
55220-   / __| | | | |_) | |
56220-  | (__| |_| |  _ {| |___
57220    \___|\___/|_| \_\_____|
58331 We are happy you popped in!
59230 Welcome you silly person
60257 "/" is current directory
61250 CWD command successful.
62229 Entering Passive Mode (stripped)
63200 I modify TYPE as you wanted
64213 10
65150 Binary data connection for %TESTNUMBER () (10 bytes).
66226 File transfer complete
67</file2>
68<stripfile2>
69s/^(229 Entering Passive Mode \().*(\).*)/${1}stripped${2}/
70</stripfile2>
71
72<file3 name="%LOGDIR/stdout%TESTNUMBER">
73</file3>
74
75</verify>
76</testcase>
77