Debian Codegraph @

curl/tests/data/test503

raw
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 127.0.0.1:%HTTPPORT
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:%HTTPSPORT HTTP/1.0
52 Host: 127.0.0.1:%HTTPSPORT
53 Proxy-Authorization: Basic dGVzdDppbmc=
54 Proxy-Connection: Keep-Alive
55
56 GET /503 HTTP/1.1
57 Authorization: Basic dGVzdDppbmc=
58 Host: 127.0.0.1:%HTTPSPORT
59 Accept: */*
60
61 </protocol>
62 </verify>