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