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