| xf.li | 6c8fc1e | 2023-08-12 00:11:09 -0700 | [diff] [blame] | 1 | <testcase> | 
 | 2 | <info> | 
 | 3 | <keywords> | 
 | 4 | FTP | 
 | 5 | RETR | 
 | 6 | </keywords> | 
 | 7 | </info> | 
 | 8 |  | 
 | 9 | # Server-side | 
 | 10 | <reply> | 
 | 11 | # file%TESTNUMBER contents... | 
 | 12 | <data nocheck="yes"> | 
 | 13 | HTTP/1.1 200 OK
 | 
 | 14 | Date: Tue, 09 Nov 2010 14:49:00 GMT
 | 
 | 15 | Server: test-server/fake
 | 
 | 16 | Content-Length: 6
 | 
 | 17 | Connection: close
 | 
 | 18 | Content-Type: text/html
 | 
 | 19 | Content-Disposition: filename=name%TESTNUMBER; charset=funny; option=strange
 | 
 | 20 | 
 | 
 | 21 | MOOOO | 
 | 22 | </data> | 
 | 23 | </reply> | 
 | 24 |  | 
 | 25 | # Client-side | 
 | 26 | <client> | 
 | 27 | <server> | 
 | 28 | ftp | 
 | 29 | </server> | 
 | 30 | <name> | 
 | 31 | FTP DL, file with C-D inside, using -o fname -i, without -D | 
 | 32 | </name> | 
 | 33 | <command option="no-output,no-include"> | 
 | 34 | ftp://%HOSTIP:%FTPPORT/path/file%TESTNUMBER -o log/download%TESTNUMBER -i | 
 | 35 | </command> | 
 | 36 | <postcheck> | 
 | 37 | perl %SRCDIR/libtest/notexists.pl log/file%TESTNUMBER log/name%TESTNUMBER | 
 | 38 | </postcheck> | 
 | 39 | </client> | 
 | 40 |  | 
 | 41 | # Verify data after the test has been "shot" | 
 | 42 | <verify> | 
 | 43 | <protocol> | 
 | 44 | USER anonymous
 | 
 | 45 | PASS ftp@example.com
 | 
 | 46 | PWD
 | 
 | 47 | CWD path
 | 
 | 48 | EPSV
 | 
 | 49 | TYPE I
 | 
 | 50 | SIZE file%TESTNUMBER
 | 
 | 51 | RETR file%TESTNUMBER
 | 
 | 52 | QUIT
 | 
 | 53 | </protocol> | 
 | 54 |  | 
 | 55 | <file1 name="log/download%TESTNUMBER"> | 
 | 56 | HTTP/1.1 200 OK
 | 
 | 57 | Date: Tue, 09 Nov 2010 14:49:00 GMT
 | 
 | 58 | Server: test-server/fake
 | 
 | 59 | Content-Length: 6
 | 
 | 60 | Connection: close
 | 
 | 61 | Content-Type: text/html
 | 
 | 62 | Content-Disposition: filename=name%TESTNUMBER; charset=funny; option=strange
 | 
 | 63 | 
 | 
 | 64 | MOOOO | 
 | 65 | </file1> | 
 | 66 |  | 
 | 67 | <file2 name="log/stdout%TESTNUMBER"> | 
 | 68 | </file2> | 
 | 69 |  | 
 | 70 | </verify> | 
 | 71 | </testcase> |