xref: /curl/tests/data/test1351 (revision cd4aee15)
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# this relies on the debug feature to allow us to set directory to store the
21# -O output in, using the CURL_TESTDIR variable
22<features>
23Debug
24</features>
25<server>
26ftp
27</server>
28<name>
29FTP download, file without C-D inside, using -O -J -D file
30</name>
31<setenv>
32CURL_TESTDIR=%LOGDIR
33</setenv>
34<command option="no-output,no-include">
35ftp://%HOSTIP:%FTPPORT/path/file%TESTNUMBER -O -J -D %LOGDIR/heads%TESTNUMBER
36</command>
37</client>
38
39# Verify data after the test has been "shot"
40<verify>
41<strip>
42QUIT
43</strip>
44<protocol>
45USER anonymous
46PASS ftp@example.com
47PWD
48CWD path
49EPSV
50TYPE I
51SIZE file%TESTNUMBER
52RETR file%TESTNUMBER
53QUIT
54</protocol>
55
56<file1 name="%LOGDIR/file%TESTNUMBER">
57fooo
58mooo
59</file1>
60
61# The final "221 bye bye baby" response to QUIT will not be recorded
62# since that is not considered part of this particular transfer!
63<file2 name="%LOGDIR/heads%TESTNUMBER">
64220-        _   _ ____  _
65220-    ___| | | |  _ \| |
66220-   / __| | | | |_) | |
67220-  | (__| |_| |  _ {| |___
68220    \___|\___/|_| \_\_____|
69331 We are happy you popped in!
70230 Welcome you silly person
71257 "/" is current directory
72250 CWD command successful.
73229 Entering Passive Mode (stripped)
74200 I modify TYPE as you wanted
75213 10
76150 Binary data connection for %TESTNUMBER () (10 bytes).
77226 File transfer complete
78</file2>
79<stripfile2>
80s/^(229 Entering Passive Mode \().*(\).*)/${1}stripped${2}/
81</stripfile2>
82
83<file3 name="%LOGDIR/stdout%TESTNUMBER">
84</file3>
85
86</verify>
87</testcase>
88