summaryrefslogtreecommitdiff
path: root/tests/data/test1632
blob: 296137bff1fbf3aec03917becc8bebf8c4637aa5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
<testcase>
<info>
<keywords>
FTP
HTTPS-proxy
</keywords>
</info>

# Server-side
<reply>

# This is the HTTPS proxy response
<connect>
HTTP/1.1 200 OK
Date: Thu, 09 Nov 2010 14:49:00 GMT
Server: test-server/fake
Content-Type: text/html
Funny-head: yesyes
Content-Length: 0

</connect>

# This is the FTP server response. The Life and Adventures of Robinson Crusoe
<data>
I was born in the year 1632, in the city of York, of a good family, though not
of that country, myfather being a foreigner of Bremen, who settled first at
Hull.  He got a good estate by merchandise,and leaving off his trade, lived
afterwards at York, from whence he had married my mother, whoserelations were
named Robinson, a very good family in that country, and from whom I was
calledRobinson Kreutznaer; but, by the usual corruption of words in England,
we are now called—nay wecall ourselves and write our name—Crusoe; and so my
companions always called me.
</data>

<data2>
I had two elder brothers, one of whom was lieutenant-colonel to an
English regiment of foot inFlanders, formerly commanded by the famous Colonel
Lockhart, and was killed at the battle nearDunkirk against the Spaniards.
What became of my second brother I never knew, any more thanmy father or
mother knew what became of me.
</data2>

</reply>

# Client-side
<client>
<server>
ftp
https-proxy
</server>
 <name>
FTP through HTTPS-proxy, with connection re-use
 </name>
 <command>
-p -x https://%HOSTIP:%HTTPSPROXYPORT ftp://ftp.site.thru.https.proxy:%FTPPORT/1632 --proxy-insecure ftp://ftp.site.thru.https.proxy:%FTPPORT/16320002
</command>
<features>
http
proxy
</features>
</client>

# Verify data after the test has been "shot"
<verify>

# The second and third CONNECT will be made to the dynamic port number the FTP
# server opens for us, so we can't compare with known pre-existing numbers!

<strippart>
s/((https.proxy):(\d+))/$2:12345/
s/^(User-Agent: curl).*/$1/
</strippart>
<proxy>
CONNECT ftp.site.thru.https.proxy:12345 HTTP/1.1
Host: ftp.site.thru.https.proxy:12345
User-Agent: curl
Proxy-Connection: Keep-Alive

CONNECT ftp.site.thru.https.proxy:12345 HTTP/1.1
Host: ftp.site.thru.https.proxy:12345
User-Agent: curl
Proxy-Connection: Keep-Alive

CONNECT ftp.site.thru.https.proxy:12345 HTTP/1.1
Host: ftp.site.thru.https.proxy:12345
User-Agent: curl
Proxy-Connection: Keep-Alive

</proxy>
<protocol>
USER anonymous
PASS ftp@example.com
PWD
EPSV
TYPE I
SIZE 1632
RETR 1632
EPSV
SIZE 16320002
RETR 16320002
QUIT
</protocol>
</verify>
</testcase>