tizen 2.3.1 release
[external/curl.git] / tests / data / test227
1 <testcase>
2 <info>
3 <keywords>
4 FTP
5 post-quote
6 pre-quote
7 </keywords>
8 </info>
9 # Server-side
10 <reply>
11 <data>
12 data
13     to
14       see
15 that FTP
16 works
17   so does it?
18 </data>
19 <servercmd>
20 REPLY EPSV 500 no such command
21 REPLY FAIL 500 this might not be a failure!
22 </servercmd>
23 </reply>
24
25 # Client-side
26 <client>
27 <server>
28 ftp
29 </server>
30  <name>
31 FTP with quote ops
32  </name>
33  <command>
34 ftp://%HOSTIP:%FTPPORT/227 -Q "NOOP 1" -Q "+NOOP 2" -Q "-NOOP 3" -Q "*FAIL" -Q "+*FAIL HARD"
35 </command>
36 </client>
37
38 # Verify data after the test has been "shot"
39 <verify>
40 <protocol>
41 USER anonymous\r
42 PASS ftp@example.com\r
43 PWD\r
44 NOOP 1\r
45 FAIL\r
46 EPSV\r
47 PASV\r
48 TYPE I\r
49 NOOP 2\r
50 FAIL HARD\r
51 SIZE 227\r
52 RETR 227\r
53 NOOP 3\r
54 QUIT\r
55 </protocol>
56 </verify>
57 </testcase>