Imported Upstream version 7.59.0
[platform/upstream/curl.git] / tests / data / test1528
1 <testcase>
2 <info>
3 <keywords>
4 HTTP
5 HTTP GET
6 HTTP CONNECT
7 HTTP proxy
8 proxytunnel
9 </keywords>
10 </info>
11
12 # Server-side
13 <reply>
14 <connect>
15 HTTP/1.1 200 OK
16 We-are: good
17
18 </connect>
19 <data>
20 HTTP/1.1 200 OK swsclose
21 Date: Thu, 09 Nov 2010 14:49:00 GMT
22 Server: test-server/fake
23 Last-Modified: Tue, 13 Jun 2000 12:10:00 GMT
24 ETag: "21025-dc7-39462498"
25 Content-Length: 5
26
27 stop
28 </data>
29
30 </reply>
31 # Client-side
32 <client>
33 <server>
34 http
35 http-proxy
36 </server>
37 <tool>
38 lib1528
39 </tool>
40  <name>
41 Separately specified proxy/server headers sent in a proxy GET
42  </name>
43  <command>
44  http://the.old.moo:%HTTPPORT/1528 %HOSTIP:%PROXYPORT
45 </command>
46 </client>
47
48 # Verify data after the test has been "shot"
49 <verify>
50 <proxy>
51 GET http://the.old.moo:%HTTPPORT/1528 HTTP/1.1
52 Host: the.old.moo:%HTTPPORT
53 Accept: */*
54 Proxy-Connection: Keep-Alive
55 User-Agent: Http Agent
56 Proxy-User-Agent: Http Agent2
57
58 </proxy>
59 </verify>
60 </testcase>