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