Imported Upstream version 7.59.0
[platform/upstream/curl.git] / tests / data / test1316
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 # When doing LIST, we get the default list output hard-coded in the test
23 # FTP server
24 <datacheck mode="text">
25 HTTP/1.1 200 Mighty fine indeed
26 Magic: sure you can FTP me
27
28 HTTP/1.1 200 Mighty fine indeed
29 Magic: sure you can FTP me
30
31 total 20
32 drwxr-xr-x   8 98       98           512 Oct 22 13:06 .
33 drwxr-xr-x   8 98       98           512 Oct 22 13:06 ..
34 drwxr-xr-x   2 98       98           512 May  2  1996 .NeXT
35 -r--r--r--   1 0        1             35 Jul 16  1996 README
36 lrwxrwxrwx   1 0        1              7 Dec  9  1999 bin -> usr/bin
37 dr-xr-xr-x   2 0        1            512 Oct  1  1997 dev
38 drwxrwxrwx   2 98       98           512 May 29 16:04 download.html
39 dr-xr-xr-x   2 0        1            512 Nov 30  1995 etc
40 drwxrwxrwx   2 98       1            512 Oct 30 14:33 pub
41 dr-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>
54 ftp
55 http-proxy
56 </server>
57 <features>
58 http
59 </features>
60  <name>
61 FTP LIST tunneled through HTTP proxy
62  </name>
63  <command>
64 ftp://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>
72 USER anonymous
73 PASS ftp@example.com
74 PWD
75 EPSV
76 TYPE A
77 LIST
78 QUIT
79 </protocol>
80 </verify>
81 </testcase>