Imported Upstream version 7.50.2
[platform/upstream/curl.git] / tests / data / test549
1 <testcase>
2 <info>
3 <keywords>
4 FTP
5 CURLOPT_PROXY_TRANSFER_MODE
6 CURLOPT_PROXY
7 HTTP proxy
8 </keywords>
9 </info>
10
11 #
12 # Server-side
13 <reply>
14 <data nocheck="yes">
15 HTTP/1.1 200 OK swsclose\r
16 Date: Thu, 09 Nov 2010 14:49:00 GMT\r
17 Server: test-server/fake\r
18 Last-Modified: Tue, 13 Jun 2000 12:10:00 GMT\r
19 ETag: "21025-dc7-39462498"\r
20 Accept-Ranges: bytes\r
21 Content-Length: 6\r
22 \r
23 hello
24 </data>
25 </reply>
26
27 #
28 # Client-side
29 <client>
30 <server>
31 http
32 </server>
33 <features>
34 ftp
35 </features>
36 <tool>
37 lib549
38 </tool>
39  <name>
40 FTP RETR over proxy with CURLOPT_PROXY_TRANSFER_MODE
41  </name>
42 # first URL then proxy
43  <command>
44 ftp://www.example.com/moo/549 http://%HOSTIP:%HTTPPORT 
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>
55 GET ftp://www.example.com/moo/549;type=i HTTP/1.1\r
56 Host: www.example.com:21\r
57 Accept: */*\r
58 Proxy-Connection: Keep-Alive\r
59 \r
60 </protocol>
61 <stdout>
62 hello
63 </stdout>
64 </verify>
65 </testcase>