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 <datacheck mode="text"> 16 file contents 17 total 20 18 drwxr-xr-x 8 98 98 512 Oct 22 13:06 . 19 drwxr-xr-x 8 98 98 512 Oct 22 13:06 .. 20 drwxr-xr-x 2 98 98 512 May 2 1996 .NeXT 21 -r--r--r-- 1 0 1 35 Jul 16 1996 README 22 lrwxrwxrwx 1 0 1 7 Dec 9 1999 bin -> usr/bin 23 dr-xr-xr-x 2 0 1 512 Oct 1 1997 dev 24 drwxrwxrwx 2 98 98 512 May 29 16:04 download.html 25 dr-xr-xr-x 2 0 1 512 Nov 30 1995 etc 26 drwxrwxrwx 2 98 1 512 Oct 30 14:33 pub 27 dr-xr-xr-x 5 0 1 512 Oct 1 1997 usr 28 </datacheck> 29 </reply> 30 31 # Client-side 32 <client> 33 <server> 34 ftp 35 </server> 36 # tool is what to use instead of 'curl' 37 <tool> 38 lib539 39 </tool> 40 41 <name> 42 Two FTP fetches using different CURLOPT_FTP_FILEMETHOD 43 </name> 44 <command> 45 ftp://%HOSTIP:%FTPPORT/path/to/the/file/539 46 </command> 47 </client> 48 49 # 50 # Verify data after the test has been "shot" 51 <verify> 52 <protocol> 53 USER anonymous 54 PASS ftp (a] example.com 55 PWD 56 CWD path/to/the/file 57 EPSV 58 TYPE I 59 SIZE 539 60 RETR 539 61 SYST 62 CWD / 63 EPSV 64 TYPE A 65 LIST path/to/the/file/539./ 66 QUIT 67 </protocol> 68 </verify> 69 </testcase> 70