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