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