Git init
[external/curl.git] / tests / data / test147
1 <testcase>
2 # Server-side
3 <reply>
4 <data>
5 foo
6 </data>
7 <servercmd>
8 REPLY CWD 550 I won't allow this on my server
9 COUNT CWD 1
10 </servercmd>
11 </reply>
12
13 # Client-side
14 <client>
15 <server>
16 ftp
17 </server>
18  <name>
19 FTP with --ftp-create-dirs (failing CWD)
20  </name>
21  <command>
22 ftp://%HOSTIP:%FTPPORT/first/dir/here/147 --ftp-create-dirs
23 </command>
24 </client>
25
26 # Verify data after the test has been "shot"
27 <verify>
28 # Strip all valid kinds of PORT and EPRT that curl can send
29 <strip>
30 ^PORT \d{1,3},\d{1,3},\d{1,3},\d{1,3},\d{1,3},\d{1,3}
31 ^EPRT \|1\|\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}\|\d{1,5}\|
32 </strip>
33 <protocol>
34 USER anonymous\r
35 PASS ftp@example.com\r
36 PWD\r
37 CWD first\r
38 MKD first\r
39 CWD first\r
40 CWD dir\r
41 CWD here\r
42 EPSV\r
43 TYPE I\r
44 SIZE 147\r
45 RETR 147\r
46 QUIT\r
47 </protocol>
48 </verify>
49 </testcase>