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