• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<testcase>
2<info>
3<keywords>
4FTP
5HTTP proxy
6CURLOPT_PROXY_TRANSFER_MODE
7CURLOPT_PROXY
8</keywords>
9</info>
10
11#
12# Server-side
13<reply>
14<data nocheck="yes">
15HTTP/1.1 200 OK swsclose
16Date: Thu, 09 Nov 2010 14:49:00 GMT
17Server: test-server/fake
18Last-Modified: Tue, 13 Jun 2000 12:10:00 GMT
19ETag: "21025-dc7-39462498"
20Accept-Ranges: bytes
21Content-Length: 6
22
23hello
24</data>
25</reply>
26
27#
28# Client-side
29<client>
30<server>
31http
32</server>
33<features>
34ftp
35</features>
36<tool>
37lib549
38</tool>
39 <name>
40FTP RETR over proxy with CURLOPT_PROXY_TRANSFER_MODE and ASCII transfer
41 </name>
42# first URL then proxy
43 <command>
44ftp://www.example.com/moo/550 http://%HOSTIP:%HTTPPORT ascii
45</command>
46</client>
47
48#
49# Verify data after the test has been "shot"
50<verify>
51<strip>
52^User-Agent:.*
53</strip>
54<protocol>
55GET ftp://www.example.com/moo/550;type=a HTTP/1.1
56Host: www.example.com:21
57Accept: */*
58Proxy-Connection: Keep-Alive
59
60</protocol>
61<stdout>
62hello
63</stdout>
64</verify>
65</testcase>
66