]> icculus.org git repositories - icculus/iodoom3.git/blob - neo/curl/tests/data/test503
hello world
[icculus/iodoom3.git] / neo / curl / tests / data / test503
1 # Server-side
2 <reply>
3 <data>
4 HTTP/1.1 200 OK swsclose
5 Date: Thu, 09 Nov 2010 14:49:00 GMT
6 Server: test-server/fake
7 Last-Modified: Tue, 13 Jun 2000 12:10:00 GMT
8 ETag: "21025-dc7-39462498"
9
10 </data>
11 <datacheck>
12 HTTP/1.1 200 Mighty fine indeed
13
14 HTTP/1.1 200 OK swsclose
15 Date: Thu, 09 Nov 2010 14:49:00 GMT
16 Server: test-server/fake
17 Last-Modified: Tue, 13 Jun 2000 12:10:00 GMT
18 ETag: "21025-dc7-39462498"
19
20 </datacheck>
21 </reply>
22
23 # Client-side
24 <client>
25 <server>
26 http
27 </server>
28 # tool is what to use instead of 'curl'
29 <tool>
30 lib503
31 </tool>
32
33  <name>
34 simple multi http:// through proxytunnel with authentication info
35  </name>
36  <command>
37 http://%HOSTIP:%HTTPSPORT/503 localhost:%HOSTPORT
38 </command>
39 <file name="log/test503.txt">
40 foo
41    bar
42 bar
43    foo
44 moo
45 </file>
46 </client>
47
48 # Verify data after the test has been "shot"
49 <verify>
50 <protocol>
51 CONNECT 127.0.0.1:8433 HTTP/1.0
52 Proxy-authorization: Basic dGVzdDppbmc=
53
54 GET /503 HTTP/1.1
55 Authorization: Basic dGVzdDppbmc=
56 Host: 127.0.0.1:8433
57 Pragma: no-cache
58 Accept: */*
59
60 </protocol>
61 </verify>