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