tizen 2.3.1 release
[external/curl.git] / tests / data / test1387
1 <testcase>
2 <info>
3 <keywords>
4 FTP
5 RETR
6 </keywords>
7 </info>
8
9 # Server-side
10 <reply>
11 # file1387 contents...
12 <data nocheck="yes">
13 HTTP/1.1 200 OK\r
14 Date: Thu, 09 Nov 2010 14:49:00 GMT\r
15 Server: test-server/fake\r
16 Content-Length: 6\r
17 Connection: close\r
18 Content-Type: text/html\r
19 Content-Disposition: filename=name1387; charset=funny; option=strange\r
20 \r
21 MOOOO
22 </data>
23 </reply>
24
25 # Client-side
26 <client>
27 <server>
28 ftp
29 </server>
30 <name>
31 FTP DL, file with C-D inside, using -o fname -D file
32 </name>
33 <command option="no-output,no-include">
34 ftp://%HOSTIP:%FTPPORT/path/file1387 -o log/download1387 -D log/heads1387
35 </command>
36 <postcheck>
37 perl %SRCDIR/libtest/notexists.pl log/file1387 log/name1387
38 </postcheck>
39 </client>
40
41 # Verify data after the test has been "shot"
42 <verify>
43 <protocol>
44 USER anonymous\r
45 PASS ftp@example.com\r
46 PWD\r
47 CWD path\r
48 EPSV\r
49 TYPE I\r
50 SIZE file1387\r
51 RETR file1387\r
52 QUIT\r
53 </protocol>
54
55 <file1 name="log/download1387">
56 HTTP/1.1 200 OK\r
57 Date: Thu, 09 Nov 2010 14:49:00 GMT\r
58 Server: test-server/fake\r
59 Content-Length: 6\r
60 Connection: close\r
61 Content-Type: text/html\r
62 Content-Disposition: filename=name1387; charset=funny; option=strange\r
63 \r
64 MOOOO
65 </file1>
66
67 <file2 name="log/heads1387">
68 220-        _   _ ____  _     \r
69 220-    ___| | | |  _ \| |    \r
70 220-   / __| | | | |_) | |    \r
71 220-  | (__| |_| |  _ {| |___ \r
72 220    \___|\___/|_| \_\_____|\r
73 331 We are happy you popped in!\r
74 230 Welcome you silly person\r
75 257 "/" is current directory\r
76 250 CWD command successful.\r
77 229 Entering Passive Mode (stripped)
78 200 I modify TYPE as you wanted\r
79 213 222\r
80 150 Binary data connection for 1387 () (222 bytes).\r
81 226 File transfer complete\r
82 </file2>
83 <stripfile2>
84 s/^(229 Entering Passive Mode \().*(\).*)/${1}stripped${2}/
85 </stripfile2>
86
87 <file3 name="log/stdout1387">
88 </file3>
89
90 </verify>
91 </testcase>