1<testcase> 2<info> 3<keywords> 4HTTP 5HTTP GET 6FTP 7PASV 8FILE 9multiprotocol 10</keywords> 11</info> 12 13# 14# Server-side 15<reply> 16<data1 nocheck="yes"> 17HTTP/1.1 200 OK 18Date: Thu, 09 Nov 2010 14:49:00 GMT 19Server: test-server/fake 20Last-Modified: Tue, 13 Jun 2000 12:10:00 GMT 21ETag: "21025-dc7-39462498" 22Accept-Ranges: bytes 23Content-Length: 6 24Connection: close 25Content-Type: text/html 26Funny-head: yesyes 27 28-foo- 29</data1> 30<data2 nocheck="yes"> 31data 32 to 33 see 34that FTP 35works 36 so does it? 37</data2> 38</reply> 39 40# 41# Client-side 42<client> 43<server> 44http 45ftp 46file 47</server> 48 <name> 49HTTP GET followed by FTP RETR followed by FILE 50 </name> 51 <command> 52http://%HOSTIP:%HTTPPORT/20010001 ftp://%HOSTIP:%FTPPORT/20010002 file://localhost/%PWD/log/test2001.txt 53</command> 54<file name="log/test2001.txt"> 55foo 56 bar 57bar 58 foo 59moo 60</file> 61</client> 62 63# 64# Verify data after the test has been "shot" 65<verify> 66<strip> 67^User-Agent:.* 68</strip> 69<protocol> 70GET /20010001 HTTP/1.1 71Host: %HOSTIP:%HTTPPORT 72Accept: */* 73 74USER anonymous 75PASS ftp@example.com 76PWD 77EPSV 78TYPE I 79SIZE 20010002 80RETR 20010002 81QUIT 82</protocol> 83<stdout> 84HTTP/1.1 200 OK 85Date: Thu, 09 Nov 2010 14:49:00 GMT 86Server: test-server/fake 87Last-Modified: Tue, 13 Jun 2000 12:10:00 GMT 88ETag: "21025-dc7-39462498" 89Accept-Ranges: bytes 90Content-Length: 6 91Connection: close 92Content-Type: text/html 93Funny-head: yesyes 94 95-foo- 96data 97 to 98 see 99that FTP 100works 101 so does it? 102foo 103 bar 104bar 105 foo 106moo 107</stdout> 108</verify> 109</testcase> 110