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