1<testcase> 2<info> 3<keywords> 4HTTP 5FTP 6--location 7</keywords> 8</info> 9 10# 11# Server-side 12<reply> 13<data> 14HTTP/1.1 301 redirect 15Date: Tue, 09 Nov 2010 14:49:00 GMT 16Server: test-server/fake 17Content-Length: 0 18Connection: close 19Content-Type: text/html 20Location: ftp://%HOSTIP:%FTPPORT/a/path/%TESTNUMBER0002 21 22</data> 23<data2> 24data 25 to 26 see 27that FTP 28works 29 so does it? 30</data2> 31 32<datacheck> 33HTTP/1.1 301 redirect 34Date: Tue, 09 Nov 2010 14:49:00 GMT 35Server: test-server/fake 36Content-Length: 0 37Connection: close 38Content-Type: text/html 39Location: ftp://%HOSTIP:%FTPPORT/a/path/%TESTNUMBER0002 40 41data 42 to 43 see 44that FTP 45works 46 so does it? 47</datacheck> 48 49</reply> 50 51# 52# Client-side 53<client> 54<server> 55http 56ftp 57</server> 58<name> 59HTTP with auth redirected to FTP w/o auth 60</name> 61<command> 62http://%HOSTIP:%HTTPPORT/%TESTNUMBER -L -u joe:secret 63</command> 64</client> 65 66# 67# Verify data after the test has been "shot" 68<verify> 69<strip> 70QUIT 71</strip> 72<protocol> 73GET /%TESTNUMBER HTTP/1.1 74Host: %HOSTIP:%HTTPPORT 75Authorization: Basic am9lOnNlY3JldA== 76User-Agent: curl/%VERSION 77Accept: */* 78 79USER anonymous 80PASS ftp@example.com 81PWD 82CWD a 83CWD path 84EPSV 85TYPE I 86SIZE %TESTNUMBER0002 87RETR %TESTNUMBER0002 88QUIT 89</protocol> 90</verify> 91</testcase> 92