test1217 (980B)
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/%TESTNUMBER ftp://%HOSTIP:%FTPPORT/get/file/again/%TESTNUMBER --ftp-method singlecwd 30 </command> 31 </client> 32 33 # Verify data after the test has been "shot" 34 <verify> 35 <strip> 36 QUIT 37 </strip> 38 # Strip all valid kinds of PORT and EPRT that curl can send 39 <strip> 40 ^PORT \d{1,3},\d{1,3},\d{1,3},\d{1,3},\d{1,3},\d{1,3} 41 ^EPRT \|1\|\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}\|\d{1,5}\| 42 </strip> 43 <protocol> 44 USER anonymous 45 PASS ftp@example.com 46 PWD 47 CWD get/file 48 EPSV 49 TYPE I 50 SIZE %TESTNUMBER 51 RETR %TESTNUMBER 52 CWD /this/is/the/path 53 CWD get/file/again 54 EPSV 55 SIZE %TESTNUMBER 56 RETR %TESTNUMBER 57 QUIT 58 </protocol> 59 </verify> 60 </testcase>