Resync
[CMakeLuaTailorHgBridge.git] / CMakeLua / Utilities / cmcurl-7.19.0 / tests / data / test197
blob02053099bd96a66746ea6cfd6dac4a9118c874c9
1 <testcase>
3 # Server-side
4 <reply>
5 <data nocheck="1">
6 HTTP/1.1 503 OK swsbounce
7 Date: Thu, 09 Nov 2010 14:49:00 GMT
8 Content-Length: 21
10 server not available
11 </data>
12 <data1 nocheck="1">
13 HTTP/1.1 200 OK
14 Date: Thu, 09 Nov 2010 14:49:00 GMT
15 Content-Length: 3
16 Connection: close
19 </data1>
21 </reply>
24 # Client-side
25 <client>
26 <server>
27 http
28 </server>
29  <name>
30 HTTP GET --retry on 503 error with output to stdout
31  </name>
32  <command>
33 http://%HOSTIP:%HTTPPORT/197 --retry 1000
34 </command>
35 </client>
38 # Verify data after the test has been "shot"
39 <verify>
40 <strip>
41 ^User-Agent:.*
42 </strip>
43 <protocol>
44 GET /197 HTTP/1.1
45 Host: %HOSTIP:%HTTPPORT
46 Accept: */*
48 GET /197 HTTP/1.1
49 Host: %HOSTIP:%HTTPPORT
50 Accept: */*
52 </protocol>
54 <stdout>
55 HTTP/1.1 503 OK swsbounce
56 Date: Thu, 09 Nov 2010 14:49:00 GMT
57 Content-Length: 21
59 server not available
60 HTTP/1.1 200 OK
61 Date: Thu, 09 Nov 2010 14:49:00 GMT
62 Content-Length: 3
63 Connection: close
66 </stdout>
68 </verify>
69 </testcase>