1<testcase> 2<info> 3<keywords> 4HTTP 5HTTP GET 6FTP 7PASV 8FILE 9TFTP 10TFTP RRQ 11multiprotocol 12</keywords> 13</info> 14 15# 16# Server-side 17<reply> 18<data1 nocheck="yes"> 19HTTP/1.1 200 OK 20Date: Thu, 09 Nov 2010 14:49:00 GMT 21Server: test-server/fake 22Last-Modified: Tue, 13 Jun 2000 12:10:00 GMT 23ETag: "21025-dc7-39462498" 24Accept-Ranges: bytes 25Content-Length: 6 26Connection: close 27Content-Type: text/html 28Funny-head: yesyes 29 30-foo- 31</data1> 32<data2 nocheck="yes"> 33data 34 to 35 see 36that FTP 37works 38 so does it? 39</data2> 40<data3 nocheck="yes"> 41a chunk of 42data 43returned 44 to TFTP client 45</data3> 46</reply> 47 48# 49# Client-side 50<client> 51<server> 52http 53ftp 54file 55tftp 56</server> 57 <name> 58HTTP GET followed by FTP RETR followed by FILE followed by TFTP RRQ then again in reverse order 59 </name> 60 <command> 61http://%HOSTIP:%HTTPPORT/20030001 ftp://%HOSTIP:%FTPPORT/20030002 file://localhost/%PWD/log/test2003.txt tftp://%HOSTIP:%TFTPPORT//20030003 tftp://%HOSTIP:%TFTPPORT//20030003 file://localhost/%PWD/log/test2003.txt ftp://%HOSTIP:%FTPPORT/20030002 http://%HOSTIP:%HTTPPORT/20030001 62</command> 63<file name="log/test2003.txt"> 64foo 65 bar 66bar 67 foo 68moo 69</file> 70</client> 71 72# 73# Verify data after the test has been "shot" 74<verify> 75<strip> 76^User-Agent:.* 77</strip> 78<protocol> 79GET /20030001 HTTP/1.1 80Host: %HOSTIP:%HTTPPORT 81Accept: */* 82 83USER anonymous 84PASS ftp@example.com 85PWD 86EPSV 87TYPE I 88SIZE 20030002 89RETR 20030002 90opcode: 1 91mode: octet 92tsize: 0 93blksize: 512 94timeout: 6 95filename: /20030003 96opcode: 1 97mode: octet 98tsize: 0 99blksize: 512 100timeout: 6 101filename: /20030003 102EPSV 103SIZE 20030002 104RETR 20030002 105GET /20030001 HTTP/1.1 106Host: %HOSTIP:%HTTPPORT 107Accept: */* 108 109QUIT 110</protocol> 111<stdout> 112HTTP/1.1 200 OK 113Date: Thu, 09 Nov 2010 14:49:00 GMT 114Server: test-server/fake 115Last-Modified: Tue, 13 Jun 2000 12:10:00 GMT 116ETag: "21025-dc7-39462498" 117Accept-Ranges: bytes 118Content-Length: 6 119Connection: close 120Content-Type: text/html 121Funny-head: yesyes 122 123-foo- 124data 125 to 126 see 127that FTP 128works 129 so does it? 130foo 131 bar 132bar 133 foo 134moo 135a chunk of 136data 137returned 138 to TFTP client 139a chunk of 140data 141returned 142 to TFTP client 143foo 144 bar 145bar 146 foo 147moo 148data 149 to 150 see 151that FTP 152works 153 so does it? 154HTTP/1.1 200 OK 155Date: Thu, 09 Nov 2010 14:49:00 GMT 156Server: test-server/fake 157Last-Modified: Tue, 13 Jun 2000 12:10:00 GMT 158ETag: "21025-dc7-39462498" 159Accept-Ranges: bytes 160Content-Length: 6 161Connection: close 162Content-Type: text/html 163Funny-head: yesyes 164 165-foo- 166</stdout> 167</verify> 168</testcase> 169