Initial commit of visual studio 9 git build superproject.
[git-build-vc9.git] / curl / tests / data / test503
blobf8bb27c03dcb730785fbb3a3fba8f47b5a4a6209
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\r
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\r
65 Host: %HOSTIP:%HTTPSPORT\r
66 Proxy-Authorization: Basic dGVzdDppbmc=\r
67 Proxy-Connection: Keep-Alive\r
69 GET /503 HTTP/1.1\r
70 Authorization: Basic dGVzdDppbmc=\r
71 Host: %HOSTIP:%HTTPSPORT\r
72 Accept: */*\r
74 </protocol>
75 </verify>
76 </testcase>