test539 (901B)
1 <testcase> 2 <info> 3 <keywords> 4 FTP 5 </keywords> 6 </info> 7 8 # 9 # Server-side 10 <reply> 11 <data> 12 file contents 13 </data> 14 15 <data1> 16 contents for file number two 17 </data1> 18 19 <datacheck> 20 file contents 21 contents for file number two 22 </datacheck> 23 </reply> 24 25 # Client-side 26 <client> 27 <server> 28 ftp 29 </server> 30 # tool is what to use instead of 'curl' 31 <tool> 32 lib%TESTNUMBER 33 </tool> 34 35 <name> 36 Two FTP fetches using different CURLOPT_FTP_FILEMETHOD 37 </name> 38 <command> 39 ftp://%HOSTIP:%FTPPORT/path/to/the/file/%TESTNUMBER ftp://%HOSTIP:%FTPPORT/path/to/the/file/%TESTNUMBER0001 40 </command> 41 </client> 42 43 # 44 # Verify data after the test has been "shot" 45 <verify> 46 <strip> 47 QUIT 48 </strip> 49 <protocol> 50 USER anonymous 51 PASS ftp@example.com 52 PWD 53 CWD path/to/the/file 54 EPSV 55 TYPE I 56 SIZE %TESTNUMBER 57 RETR %TESTNUMBER 58 SYST 59 CWD / 60 EPSV 61 SIZE path/to/the/file/%TESTNUMBER0001 62 RETR path/to/the/file/%TESTNUMBER0001 63 QUIT 64 </protocol> 65 </verify> 66 </testcase>