tizen 2.3.1 release
[external/curl.git] / tests / data / test1217
1 <testcase>
2 <info>
3 <keywords>
4 FTP
5 PORT
6 NLST
7 --data-binary
8 </keywords>
9 </info>
10 # Server-side
11 <reply>
12 <data>
13 contents
14 </data>
15 <servercmd>
16 REPLY PWD 257 there is rubbish all over "/this/is/the/path"
17 </servercmd>
18 </reply>
19
20 # Client-side
21 <client>
22 <server>
23 ftp
24 </server>
25  <name>
26 FTP with rubbish before name in 257-response
27  </name>
28  <command>
29 ftp://%HOSTIP:%FTPPORT/get/file/1217 ftp://%HOSTIP:%FTPPORT/get/file/again/1217 --ftp-method singlecwd
30 </command>
31 </client>
32
33 # Verify data after the test has been "shot"
34 <verify>
35 # Strip all valid kinds of PORT and EPRT that curl can send
36 <strip>
37 ^PORT \d{1,3},\d{1,3},\d{1,3},\d{1,3},\d{1,3},\d{1,3}
38 ^EPRT \|1\|\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}\|\d{1,5}\|
39 </strip>
40 <protocol>
41 USER anonymous\r
42 PASS ftp@example.com\r
43 PWD\r
44 CWD get/file\r
45 EPSV\r
46 TYPE I\r
47 SIZE 1217\r
48 RETR 1217\r
49 CWD /this/is/the/path\r
50 CWD get/file/again\r
51 EPSV\r
52 SIZE 1217\r
53 RETR 1217\r
54 QUIT\r
55 </protocol>
56 </verify>
57 </testcase>