tizen 2.3.1 release
[external/curl.git] / tests / data / test1379
1 <testcase>
2 <info>
3 <keywords>
4 FTP
5 RETR
6 </keywords>
7 </info>
8
9 # Server-side
10 <reply>
11 <data nocheck="yes">
12 fooo
13 mooo
14 </data>
15 </reply>
16
17 # Client-side
18 <client>
19 <server>
20 ftp
21 </server>
22 <name>
23 FTP DL, file without C-D inside, using -o fname -D file
24 </name>
25 <command option="no-output,no-include">
26 ftp://%HOSTIP:%FTPPORT/path/file1379 -o log/download1379 -D log/heads1379
27 </command>
28 <postcheck>
29 perl %SRCDIR/libtest/notexists.pl log/file1379
30 </postcheck>
31 </client>
32
33 # Verify data after the test has been "shot"
34 <verify>
35 <protocol>
36 USER anonymous\r
37 PASS ftp@example.com\r
38 PWD\r
39 CWD path\r
40 EPSV\r
41 TYPE I\r
42 SIZE file1379\r
43 RETR file1379\r
44 QUIT\r
45 </protocol>
46
47 <file1 name="log/download1379">
48 fooo
49 mooo
50 </file1>
51
52 <file2 name="log/heads1379">
53 220-        _   _ ____  _     \r
54 220-    ___| | | |  _ \| |    \r
55 220-   / __| | | | |_) | |    \r
56 220-  | (__| |_| |  _ {| |___ \r
57 220    \___|\___/|_| \_\_____|\r
58 331 We are happy you popped in!\r
59 230 Welcome you silly person\r
60 257 "/" is current directory\r
61 250 CWD command successful.\r
62 229 Entering Passive Mode (stripped)
63 200 I modify TYPE as you wanted\r
64 213 10\r
65 150 Binary data connection for 1379 () (10 bytes).\r
66 226 File transfer complete\r
67 </file2>
68 <stripfile2>
69 s/^(229 Entering Passive Mode \().*(\).*)/${1}stripped${2}/
70 </stripfile2>
71
72 <file3 name="log/stdout1379">
73 </file3>
74
75 </verify>
76 </testcase>