Resync
[CMakeLuaTailorHgBridge.git] / CMakeLua / Utilities / cmcurl-7.19.0 / tests / data / test234
blobc6741a0836824ce11ce157a523a032b129e7b70a
1 <testcase>
3 # Server-side
4 <reply>
5 <data>
6 HTTP/1.1 302 OK
7 Date: Thu, 09 Nov 2010 14:49:00 GMT
8 Server: test-server/fake swsclose
9 Content-Type: text/html
10 Funny-head: yesyes
11 Location: http://goto.second.host.now/2340002
12 Content-Length: 8
13 Connection: close
15 contents
16 </data>
17 <data2>
18 HTTP/1.1 200 OK
19 Date: Thu, 09 Nov 2010 14:49:00 GMT
20 Server: test-server/fake swsclose
21 Content-Type: text/html
22 Funny-head: yesyes
23 Content-Length: 9
25 contents
26 </data2>
28 <datacheck>
29 HTTP/1.1 302 OK
30 Date: Thu, 09 Nov 2010 14:49:00 GMT
31 Server: test-server/fake swsclose
32 Content-Type: text/html
33 Funny-head: yesyes
34 Location: http://goto.second.host.now/2340002
35 Content-Length: 8
36 Connection: close
38 HTTP/1.1 200 OK
39 Date: Thu, 09 Nov 2010 14:49:00 GMT
40 Server: test-server/fake swsclose
41 Content-Type: text/html
42 Funny-head: yesyes
43 Content-Length: 9
45 contents
46 </datacheck>
47 </reply>
50 # Client-side
51 <client>
52 <server>
53 http
54 </server>
55  <name>
56 HTTP, proxy, site+proxy auth and Location: to new host using location-trusted
57  </name>
58  <command>
59 http://first.host.it.is/we/want/that/page/234 -x %HOSTIP:%HTTPPORT --user iam:myself --proxy-user testing:this --location-trusted
60 </command>
61 </client>
64 # Verify data after the test has been "shot"
65 <verify>
66 <strip>
67 ^User-Agent:.*
68 </strip>
69 <protocol>
70 GET http://first.host.it.is/we/want/that/page/234 HTTP/1.1
71 Proxy-Authorization: Basic dGVzdGluZzp0aGlz
72 Authorization: Basic aWFtOm15c2VsZg==
73 Host: first.host.it.is
74 Pragma: no-cache
75 Accept: */*
76 Proxy-Connection: Keep-Alive
78 GET http://goto.second.host.now/2340002 HTTP/1.1
79 Proxy-Authorization: Basic dGVzdGluZzp0aGlz
80 Authorization: Basic aWFtOm15c2VsZg==
81 Host: goto.second.host.now
82 Pragma: no-cache
83 Accept: */*
84 Proxy-Connection: Keep-Alive
86 </protocol>
87 </verify>
88 </testcase>