Debian Codegraph @

curl/tests/data/test197

raw
1 #
2 # Server-side
3 <reply>
4 <data nocheck=1>
5 HTTP/1.1 503 OK swsbounce
6 Date: Thu, 09 Nov 2010 14:49:00 GMT
7 Content-Length: 21
8
9 server not available
10 </data>
11 <data1 nocheck=1>
12 HTTP/1.1 200 OK
13 Date: Thu, 09 Nov 2010 14:49:00 GMT
14 Content-Length: 3
15 Connection: close
16
17 ok
18 </data1>
19
20 </reply>
21
22 #
23 # Client-side
24 <client>
25 <server>
26 http
27 </server>
28 <name>
29 HTTP GET --retry on 503 error with output to stdout
30 </name>
31 <command>
32 http://%HOSTIP:%HTTPPORT/197 --retry 1000
33 </command>
34 </client>
35
36 #
37 # Verify data after the test has been "shot"
38 <verify>
39 <strip>
40 ^User-Agent:.*
41 </strip>
42 <protocol>
43 GET /197 HTTP/1.1
44 Host: 127.0.0.1:%HTTPPORT
45 Accept: */*
46
47 GET /197 HTTP/1.1
48 Host: 127.0.0.1:%HTTPPORT
49 Accept: */*
50
51 </protocol>
52
53 <stdout>
54 HTTP/1.1 503 OK swsbounce
55 Date: Thu, 09 Nov 2010 14:49:00 GMT
56 Content-Length: 21
57
58 server not available
59 HTTP/1.1 200 OK
60 Date: Thu, 09 Nov 2010 14:49:00 GMT
61 Content-Length: 3
62 Connection: close
63
64 ok
65 </stdout>
66
67 </verify>