• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<testcase>
2<info>
3<keywords>
4FTP
5HTTP proxy
6CURLOPT_PROXY
7</keywords>
8</info>
9
10#
11# Server-side
12<reply>
13<data nocheck="yes">
14HTTP/1.1 200 OK
15Date: Thu, 09 Nov 2010 14:49:00 GMT
16Content-Length: 6
17
18hello
19</data>
20
21</reply>
22
23#
24# Client-side
25<client>
26<server>
27http
28</server>
29<features>
30http
31ftp
32proxy
33</features>
34 <name>
35FTP RETR twice over proxy confirming persistent connection
36 </name>
37
38 <command>
39ftp://ftp-site/moo/1098 ftp://ftp-site/moo/1098 --proxy http://%HOSTIP:%HTTPPORT
40</command>
41</client>
42
43#
44# Verify data after the test has been "shot"
45<verify>
46<strip>
47^User-Agent:.*
48</strip>
49<protocol>
50GET ftp://ftp-site/moo/1098 HTTP/1.1
51Host: ftp-site:21
52Accept: */*
53Proxy-Connection: Keep-Alive
54
55GET ftp://ftp-site/moo/1098 HTTP/1.1
56Host: ftp-site:21
57Accept: */*
58Proxy-Connection: Keep-Alive
59
60</protocol>
61<stdout>
62HTTP/1.1 200 OK
63Date: Thu, 09 Nov 2010 14:49:00 GMT
64Content-Length: 6
65
66hello
67HTTP/1.1 200 OK
68Date: Thu, 09 Nov 2010 14:49:00 GMT
69Content-Length: 6
70
71hello
72</stdout>
73</verify>
74</testcase>
75