• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<testcase>
2<info>
3<keywords>
4HTTP
5gzip
6</keywords>
7</info>
8
9#
10# Server-side
11<reply>
12<data nocheck="yes">
13HTTP/1.1 200 swsclose OK
14Content-Length: 6
15Transfer-Encoding: gzip
16Transfer-Encoding: gzip
17Transfer-Encoding: gzip
18Transfer-Encoding: gzip
19Transfer-Encoding: gzip
20Transfer-Encoding: gzip
21Transfer-Encoding: gzip
22Transfer-Encoding: gzip
23Transfer-Encoding: gzip
24
25-foo-
26</data>
27</reply>
28
29#
30# Client-side
31<client>
32<server>
33http
34</server>
35<features>
36libz
37</features>
38<name>
39Response with multiple Transfer-Encoding headers
40</name>
41<command>
42http://%HOSTIP:%HTTPPORT/%TESTNUMBER -sS --tr-encoding
43</command>
44</client>
45
46#
47# Verify data after the test has been "shot"
48<verify>
49<protocol crlf="yes">
50GET /%TESTNUMBER HTTP/1.1
51Host: %HOSTIP:%HTTPPORT
52User-Agent: curl/%VERSION
53Accept: */*
54Connection: TE
55TE: gzip
56
57</protocol>
58
59# CURLE_BAD_CONTENT_ENCODING is 61
60<errorcode>
6161
62</errorcode>
63<stderr mode="text">
64curl: (61) Reject response due to more than 5 content encodings
65</stderr>
66</verify>
67</testcase>
68