Resync
[CMakeLuaTailorHgBridge.git] / CMakeLua / Utilities / cmcurl-7.19.0 / tests / data / test503
blob3c4cd18842eccbc23ed186e4a0b2aa8d48e8572c
1 <testcase>
2 <info>
3 <keywords>
4 HTTP
5 HTTP GET
6 HTTP CONNECT
7 HTTP proxy
8 HTTP proxy Basic auth
9 proxytunnel
10 multi
11 </keywords>
12 </info>
14 # Server-side
15 <reply>
16 <data>
17 HTTP/1.1 200 OK swsclose
18 Date: Thu, 09 Nov 2010 14:49:00 GMT
19 Server: test-server/fake
20 Last-Modified: Tue, 13 Jun 2000 12:10:00 GMT
21 ETag: "21025-dc7-39462498"
23 </data>
24 <datacheck>
25 HTTP/1.1 200 Mighty fine indeed
27 HTTP/1.1 200 OK swsclose
28 Date: Thu, 09 Nov 2010 14:49:00 GMT
29 Server: test-server/fake
30 Last-Modified: Tue, 13 Jun 2000 12:10:00 GMT
31 ETag: "21025-dc7-39462498"
33 </datacheck>
34 </reply>
36 # Client-side
37 <client>
38 <server>
39 http
40 </server>
41 # tool is what to use instead of 'curl'
42 <tool>
43 lib503
44 </tool>
46  <name>
47 simple multi http:// through proxytunnel with authentication info
48  </name>
49  <command>
50 http://%HOSTIP:%HTTPSPORT/503 %HOSTIP:%HTTPPORT
51 </command>
52 <file name="log/test503.txt">
53 foo
54    bar
55 bar
56    foo
57 moo
58 </file>
59 </client>
61 # Verify data after the test has been "shot"
62 <verify>
63 <protocol>
64 CONNECT %HOSTIP:%HTTPSPORT HTTP/1.0
65 Host: %HOSTIP:%HTTPSPORT
66 Proxy-Authorization: Basic dGVzdDppbmc=
67 Proxy-Connection: Keep-Alive
69 GET /503 HTTP/1.1
70 Authorization: Basic dGVzdDppbmc=
71 Host: %HOSTIP:%HTTPSPORT
72 Accept: */*
74 </protocol>
75 </verify>
76 </testcase>