test1316 (1378B)
1 <testcase> 2 <info> 3 <keywords> 4 FTP 5 PASV 6 LIST 7 HTTP 8 HTTP CONNECT 9 HTTP proxy 10 </keywords> 11 </info> 12 # 13 # Server-side 14 <reply> 15 16 <connect> 17 HTTP/1.1 200 Mighty fine indeed 18 Magic: sure you can FTP me 19 20 </connect> 21 22 <data mode="text"> 23 total 20 24 drwxr-xr-x 8 98 98 512 Oct 22 13:06 . 25 drwxr-xr-x 8 98 98 512 Oct 22 13:06 .. 26 drwxr-xr-x 2 98 98 512 May 2 1996 .NeXT 27 -r--r--r-- 1 0 1 35 Jul 16 1996 README 28 lrwxrwxrwx 1 0 1 7 Dec 9 1999 bin -> usr/bin 29 dr-xr-xr-x 2 0 1 512 Oct 1 1997 dev 30 drwxrwxrwx 2 98 98 512 May 29 16:04 download.html 31 dr-xr-xr-x 2 0 1 512 Nov 30 1995 etc 32 drwxrwxrwx 2 98 1 512 Oct 30 14:33 pub 33 dr-xr-xr-x 5 0 1 512 Oct 1 1997 usr 34 </data> 35 </reply> 36 37 # 38 # Client-side 39 <client> 40 41 # please send the real CONNECT connect off to the FTP server's port 42 <connectport> 43 %FTPPORT 44 </connectport> 45 <server> 46 ftp 47 http-proxy 48 </server> 49 <features> 50 http 51 </features> 52 <name> 53 FTP LIST tunneled through HTTP proxy 54 </name> 55 <command> 56 ftp://ftp.%TESTNUMBER:%FTPPORT/ -p -x %HOSTIP:%PROXYPORT 57 </command> 58 </client> 59 60 # 61 # Verify data after the test has been "shot" 62 <verify> 63 <strip> 64 QUIT 65 </strip> 66 <protocol> 67 USER anonymous 68 PASS ftp@example.com 69 PWD 70 EPSV 71 TYPE A 72 LIST 73 QUIT 74 </protocol> 75 </verify> 76 </testcase>