sws: add 'connection-monitor' command support
[platform/upstream/curl.git] / tests / data / test503
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>
13
14 # Server-side
15 <reply>
16 <servercmd>
17 connection-monitor
18 </servercmd>
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
26 </data>
27 <datacheck>
28 HTTP/1.1 200 Mighty fine indeed\r
29 \r
30 HTTP/1.1 200 OK swsclose
31 Date: Thu, 09 Nov 2010 14:49:00 GMT
32 Server: test-server/fake
33 Last-Modified: Tue, 13 Jun 2000 12:10:00 GMT
34 ETag: "21025-dc7-39462498"
35
36 </datacheck>
37 </reply>
38
39 # Client-side
40 <client>
41 <server>
42 http
43 http-proxy
44 </server>
45 # tool is what to use instead of 'curl'
46 <tool>
47 lib503
48 </tool>
49
50  <name>
51 simple multi http:// through proxytunnel with authentication info
52  </name>
53  <command>
54 http://%HOSTIP:%HTTPPORT/503 %HOSTIP:%PROXYPORT
55 </command>
56 <file name="log/test503.txt">
57 foo
58    bar
59 bar
60    foo
61 moo
62 </file>
63 </client>
64
65 # Verify data after the test has been "shot"
66 <verify>
67 <proxy>
68 CONNECT %HOSTIP:%HTTPPORT HTTP/1.1\r
69 Host: %HOSTIP:%HTTPPORT\r
70 Proxy-Authorization: Basic dGVzdDppbmc=\r
71 Proxy-Connection: Keep-Alive\r
72 \r
73 </proxy>
74 <protocol>
75 GET /503 HTTP/1.1\r
76 Authorization: Basic dGVzdDppbmc=\r
77 Host: %HOSTIP:%HTTPPORT\r
78 Accept: */*\r
79 \r
80 </protocol>
81 </verify>
82 </testcase>