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: Tue, 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
27proxy
28</features>
29<server>
30http
31</server>
32 <name>
33FTP URL and with ftp_proxy environment variable set
34 </name>
35
36<setenv>
37ftp_proxy=http://%HOSTIP:%HTTPPORT/
38</setenv>
39 <command>
40ftp://%HOSTIP:23456/%TESTNUMBER
41</command>
42
43</client>
44
45# Verify data after the test has been "shot"
46<verify>
47<protocol>
48GET ftp://%HOSTIP:23456/%TESTNUMBER HTTP/1.1
49Host: %HOSTIP:23456
50User-Agent: curl/%VERSION
51Accept: */*
52Proxy-Connection: Keep-Alive
53
54</protocol>
55</verify>
56</testcase>
57