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