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