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