1<testcase>
2<info>
3<keywords>
4HTTP
5HTTP GET
6</keywords>
7</info>
8
9# Server-side
10<reply>
11<data nocheck="yes">
12HTTP/1.1 200 OK swsclose
13Date: Thu, 09 Nov 2010 14:49:00 GMT
14Content-Length: 9
15
16surprise
17</data>
18<data1>
19HTTP/1.1 200 OK swsclose
20Date: Thu, 09 Nov 2010 14:49:00 GMT
21Connection: close
22
23surprise2
24</data1>
25
26<postcmd>
27wait 1
28</postcmd>
29</reply>
30
31# Client-side
32<client>
33<server>
34http
35</server>
36 <name>
37HTTP with delayed close, conn reuse, connection reset and retry
38 </name>
39 <command>
40http://%HOSTIP:%HTTPPORT/want/160 http://%HOSTIP:%HTTPPORT/wantmore/1600001
41</command>
42</client>
43
44# Verify data after the test has been "shot"
45<verify>
46<stdout>
47HTTP/1.1 200 OK swsclose
48Date: Thu, 09 Nov 2010 14:49:00 GMT
49Content-Length: 9
50
51surprise
52HTTP/1.1 200 OK swsclose
53Date: Thu, 09 Nov 2010 14:49:00 GMT
54Connection: close
55
56surprise2
57</stdout>
58
59<strip>
60^User-Agent:.*
61</strip>
62<protocol>
63GET /want/160 HTTP/1.1
64Host: %HOSTIP:%HTTPPORT
65Accept: */*
66
67GET /wantmore/1600001 HTTP/1.1
68Host: %HOSTIP:%HTTPPORT
69Accept: */*
70
71</protocol>
72</verify>
73</testcase>
74