1<testcase>
2<info>
3<keywords>
4FTP
5CURLOPT_PORT
6HTTP proxy
7</keywords>
8</info>
9
10# Server-side
11<reply>
12<data nocheck="yes">
13HTTP/1.1 200 OK swsclose
14Date: Thu, 09 Nov 2010 14:49:00 GMT
15Server: test-server/fake
16Accept-Ranges: bytes
17Content-Length: 6
18
19hello
20</data>
21</reply>
22
23# Client-side
24<client>
25<features>
26ftp
27</features>
28<server>
29http
30</server>
31 <name>
32FTP URL and with ftp_proxy environment variable set
33 </name>
34
35<setenv>
36ftp_proxy=http://%HOSTIP:%HTTPPORT/
37</setenv>
38 <command>
39ftp://%HOSTIP:23456/1106
40</command>
41
42</client>
43
44# Verify data after the test has been "shot"
45<verify>
46<strip>
47^User-Agent:.*
48</strip>
49<protocol>
50GET ftp://%HOSTIP:23456/1106 HTTP/1.1
51Host: %HOSTIP:23456
52Accept: */*
53Proxy-Connection: Keep-Alive
54
55</protocol>
56</verify>
57</testcase>
58