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