ee4887ac5aabc2f9436ff605a4f11db34b736e65
[external/curl.git] / tests / data / test1527
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\r
16 We-are: good\r
17 \r
18 </connect>
19 <data>
20 HTTP/1.1 200 OK swsclose\r
21 Date: Thu, 09 Nov 2010 14:49:00 GMT\r
22 Server: test-server/fake\r
23 Last-Modified: Tue, 13 Jun 2000 12:10:00 GMT\r
24 ETag: "21025-dc7-39462498"\r
25 </data>
26 <datacheck>
27 HTTP/1.1 200 OK\r
28 We-are: good\r
29 \r
30 HTTP/1.1 200 OK swsclose\r
31 Date: Thu, 09 Nov 2010 14:49:00 GMT\r
32 Server: test-server/fake\r
33 Last-Modified: Tue, 13 Jun 2000 12:10:00 GMT\r
34 ETag: "21025-dc7-39462498"\r
35 </datacheck>
36
37 </reply>
38 # Client-side
39 <client>
40 <server>
41 http
42 http-proxy
43 </server>
44 <tool>
45 lib1527
46 </tool>
47  <name>
48 Check same headers are generated without CURLOPT_PROXYHEADER
49  </name>
50  <command>
51  http://the.old.moo.1527:%HTTPPORT/1527 %HOSTIP:%PROXYPORT
52 </command>
53 </client>
54
55 # Verify data after the test has been "shot"
56 <verify>
57 <proxy>
58 CONNECT the.old.moo.1527:%HTTPPORT HTTP/1.1\r
59 Host: the.old.moo.1527:%HTTPPORT\r
60 Proxy-Connection: Keep-Alive\r
61 User-Agent: Http Agent\r
62 Expect: 100-continue\r
63 \r
64 </proxy>
65 <protocol>
66 PUT /1527 HTTP/1.1\r
67 Host: the.old.moo.1527:%HTTPPORT\r
68 Accept: */*\r
69 User-Agent: Http Agent\r
70 Expect: 100-continue\r
71 Content-Length: 13\r
72 \r
73 Hello Cloud!
74 </protocol>
75 </verify>
76 </testcase>