e71d756949374c535d536acf0dd18867d1166c83
[platform/upstream/curl.git] / tests / data / test1077
1 <testcase>
2 <info>
3 <keywords>
4 FTP
5 HTTP
6 HTTP/1.0
7 HTTP GET
8 HTTP proxy
9 </keywords>
10 </info>
11
12 #
13 # Server-side
14 <reply>
15 <data>
16 HTTP/1.0 200 OK\r
17 Date: Thu, 09 Nov 2010 14:49:00 GMT\r
18 Server: test-server/fake\r
19 Content-Type: text/plain\r
20 Content-Length: 9\r
21 Funny-head: yesyes\r
22 Proxy-Connection: Keep-Alive\r
23 \r
24 contents
25 </data>
26 <data2>
27 HTTP/1.0 200 OK\r
28 Date: Thu, 09 Nov 2010 14:49:00 GMT\r
29 Server: test-server/fake\r
30 Content-Type: text/plain\r
31 Content-Length: 9\r
32 Funny-head: yesyes\r
33 \r
34 contents
35 </data2>
36 </reply>
37
38 #
39 # Client-side
40 <client>
41 <server>
42 http
43 </server>
44 <features>
45 ftp
46 </features>
47  <name>
48 FTP over HTTP proxy with downgrade to HTTP 1.0
49  </name>
50  <command>
51 -x %HOSTIP:%HTTPPORT ftp://%HOSTIP:%HTTPPORT/we/want/that/page/1077 ftp://%HOSTIP:%HTTPPORT/we/want/that/page/10770002
52 </command>
53 </client>
54
55 #
56 # Verify data after the test has been "shot"
57 <verify>
58 <strip>
59 ^User-Agent:.*
60 </strip>
61 <protocol>
62 GET ftp://%HOSTIP:%HTTPPORT/we/want/that/page/1077 HTTP/1.1\r
63 Host: %HOSTIP:%HTTPPORT\r
64 Accept: */*\r
65 \r
66 GET ftp://%HOSTIP:%HTTPPORT/we/want/that/page/10770002 HTTP/1.0\r
67 Host: %HOSTIP:%HTTPPORT\r
68 Accept: */*\r
69 \r
70 </protocol>
71 </verify>
72 </testcase>