Debian Codegraph @

curl/tests/data/test198

raw
1 #
2 # Server-side
3 <reply>
4 <data>
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>
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 <datacheck>
21 HTTP/1.1 200 OK
22 Date: Thu, 09 Nov 2010 14:49:00 GMT
23 Content-Length: 3
24 Connection: close
25
26 ok
27 </datacheck>
28
29 </reply>
30
31 #
32 # Client-side
33 <client>
34 <server>
35 http
36 </server>
37 <name>
38 HTTP GET --retry on 503 error with output to file
39 </name>
40 <command>
41 http://%HOSTIP:%HTTPPORT/198 --retry 1000
42 </command>
43 </client>
44
45 #
46 # Verify data after the test has been "shot"
47 <verify>
48 <strip>
49 ^User-Agent:.*
50 </strip>
51 <protocol>
52 GET /198 HTTP/1.1
53 Host: 127.0.0.1:%HTTPPORT
54 Accept: */*
55
56 GET /198 HTTP/1.1
57 Host: 127.0.0.1:%HTTPPORT
58 Accept: */*
59
60 </protocol>
61
62 </verify>