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<server>
26ftp
27http
28</server>
29<tool>
30lib562
31</tool>
32 <name>
33FTP type=A URL and CURLOPT_PORT set and proxy
34 </name>
35
36<setenv>
37ftp_proxy=http://%HOSTIP:%HTTPPORT/
38</setenv>
39# note that we need quotes around the URL below to make sure the shell doesn't
40# treat the semicolon as a separator!
41 <command>
42"ftp://%HOSTIP:23456/563;type=A" %FTPPORT
43</command>
44
45</client>
46
47# Verify data after the test has been "shot"
48<verify>
49<protocol>
50GET FTP://%HOSTIP:%FTPPORT/563;type=A HTTP/1.1
51Host: %HOSTIP:%FTPPORT
52Accept: */*
53Proxy-Connection: Keep-Alive
54
55</protocol>
56</verify>
57</testcase>
58