• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<testcase>
2<info>
3<keywords>
4HTTP
5HTTP GET
6Content-Encoding
7</keywords>
8</info>
9
10# Server-side
11<reply>
12<data>
13HTTP/1.1 200 OK
14Date: Tue, 09 Nov 2010 14:49:00 GMT
15Content-Type: text/html
16Content-Encoding: none
17Content-Length: 38
18
19Q- What did 0 say to 8? A- Nice Belt!
20</data>
21</reply>
22
23# Client-side
24<client>
25<server>
26http
27</server>
28
29# we're actually more interested in any compression support but this is the
30# best we can do right now
31<features>
32libz
33</features>
34<name>
35HTTP with "Content-Encoding: none
36</name>
37<command>
38http://%HOSTIP:%HTTPPORT/hello/%TESTNUMBER --compressed
39</command>
40</client>
41
42# Verify data after the test has been "shot"
43<verify>
44<strip>
45^Accept-Encoding:.*
46</strip>
47<protocol>
48GET /hello/%TESTNUMBER HTTP/1.1
49Host: %HOSTIP:%HTTPPORT
50User-Agent: curl/%VERSION
51Accept: */*
52
53</protocol>
54</verify>
55</testcase>
56