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