xref: /curl/tests/data/test1351 (revision 39697dea)
1<testcase>
2<info>
3<keywords>
4FTP
5RETR
6-J
7</keywords>
8</info>
9
10# Server-side
11<reply>
12<data nocheck="yes">
13fooo
14mooo
15</data>
16</reply>
17
18# Client-side
19<client>
20<server>
21ftp
22</server>
23<name>
24FTP download, file without C-D inside, using -O -J -D file
25</name>
26<command option="no-output,no-include">
27ftp://%HOSTIP:%FTPPORT/path/file%TESTNUMBER -O -J -D %LOGDIR/heads%TESTNUMBER --output-dir %LOGDIR
28</command>
29</client>
30
31# Verify data after the test has been "shot"
32<verify>
33<strip>
34QUIT
35</strip>
36<protocol>
37USER anonymous
38PASS ftp@example.com
39PWD
40CWD path
41EPSV
42TYPE I
43SIZE file%TESTNUMBER
44RETR file%TESTNUMBER
45QUIT
46</protocol>
47
48<file1 name="%LOGDIR/file%TESTNUMBER">
49fooo
50mooo
51</file1>
52
53# The final "221 bye bye baby" response to QUIT will not be recorded
54# since that is not considered part of this particular transfer!
55<file2 name="%LOGDIR/heads%TESTNUMBER">
56220-        _   _ ____  _
57220-    ___| | | |  _ \| |
58220-   / __| | | | |_) | |
59220-  | (__| |_| |  _ {| |___
60220    \___|\___/|_| \_\_____|
61331 We are happy you popped in!
62230 Welcome you silly person
63257 "/" is current directory
64250 CWD command successful.
65229 Entering Passive Mode (stripped)
66200 I modify TYPE as you wanted
67213 10
68150 Binary data connection for %TESTNUMBER () (10 bytes).
69226 File transfer complete
70</file2>
71<stripfile2>
72s/^(229 Entering Passive Mode \().*(\).*)/${1}stripped${2}/
73</stripfile2>
74
75<file3 name="%LOGDIR/stdout%TESTNUMBER">
76</file3>
77
78</verify>
79</testcase>
80