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