xref: /curl/tests/data/test1277 (revision 3fd80c7b)
1<testcase>
2<info>
3<keywords>
4HTTP
5HTTP GET
6compressed
7Transfer-Encoding
8Content-Encoding
9</keywords>
10</info>
11#
12# Server-side
13<reply>
14<data base64="yes">
15SFRUUC8xLjEgMjAwIE9LDQpEYXRlOiBNb24sIDI5IE5vdiAyMDA0IDIxOjU2OjUzIEdNVA0KU2Vy
16dmVyOiBBcGFjaGUvMS4zLjMxIChEZWJpYW4gR05VL0xpbnV4KSBtb2RfZ3ppcC8xLjMuMjYuMWEg
17UEhQLzQuMy45LTEgbW9kX3NzbC8yLjguMjAgT3BlblNTTC8wLjkuN2QgbW9kX3BlcmwvMS4yOQ0K
18VmFyeTogQWNjZXB0LUVuY29kaW5nDQpDb250ZW50LVR5cGU6IHRleHQvaHRtbDsgY2hhcnNldD1J
19U08tODg1OS0xDQpUcmFuc2Zlci1FbmNvZGluZzogZ3ppcCwgY2h1bmtlZA0KQ29udGVudC1FbmNv
20ZGluZzogZGVmbGF0ZQ0KDQo1MjINCh+LCAAHgbBjAv8BCwX0+nja3VjbbuM2EH03kH9g/dQCtm62
21EzlwtChy2QTNNsHaBbpPBi3RNhtJFEjKuTz02zuUKImxHK93g74ESGJy5pzD4QxJk5l8ekpitCFc
22UJaedV3L6SKShiyi6eqsezO96/v+aNx3u5+CzuSXi7vz2bf7S5Rx9g8JZT+mQgIQTb9NZ5dfUHct
23ZXZq20tOxDohWFopkfYChw8kjexl0tc80XesoRXJqAuiW1pBB6HKptpNb06jwD12vYltGEpEhCWZ
244ygigBiP/b7j9z0XOcNTxz31xhPb8BuEPFMfUeA5zrDvOn3XR4536sHPQFMqxKs4UpyQuVgzLoMw
2553EdjmFv45d5HBdwhNMIxXTRphYQHR4RoZY6Z0lSUlKCJGO1AMf8GS0ZR2FMSSr7gkYE/fX1FkmO
26U7GEilowi0bIUN4ZDKIC4XIEpVqpcFXfJY2JOOrkQnXUGOI5lfjJQjcSiTzLQF+g69nsvlf8nfbQ
27FbSP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XL
41sZOo7y3gPhmqYux07WQaj7MWdfvh9hZXUqk2FNjhzo5+1bep33Zqldh6pzWIt/PGinsbjv+/pDk/
42nbHh4J0ZU++rj58o1xuM3Hdk6gWeYh8/SwPPGZ68I0vXhCYRjj9+oobD0cB7R6LCPjz1xc/kybDo
43s77+r1DQqZvNf8f+A904jtHT7+gYCwUAAA0KMA0KDQo=
44</data>
45
46
47<datacheck>
48HTTP/1.1 200 OK
49Date: Mon, 29 Nov 2004 21:56:53 GMT
50Server: Apache/1.3.31 (Debian GNU/Linux) mod_gzip/1.3.26.1a PHP/4.3.9-1 mod_ssl/2.8.20 OpenSSL/0.9.7d mod_perl/1.29
51Vary: Accept-Encoding
52Content-Type: text/html; charset=ISO-8859-1
53Transfer-Encoding: gzip, chunked
54Content-Encoding: deflate
55
56<?xml version="1.0" encoding="ISO-8859-1"?>
57<!DOCTYPE project-listing SYSTEM "http://freshmeat.net/backend/fm-projects-0.4.dtd">
58<project-listing>
59  <project>
60    <project_id>1612</project_id>
61    <date_added>1998-08-21 04:01:29</date_added>
62    <date_updated>2004-10-18 02:22:23</date_updated>
63    <projectname_short>curl</projectname_short>
64    <projectname_full>curl and libcurl</projectname_full>
65    <desc_short>Command line tool and library for client-side URL transfers.</desc_short>
66    <desc_full>curl and libcurl is a tool for transferring files
67using URL syntax. It supports HTTP, HTTPS, FTP,
68FTPS, DICT, TELNET, LDAP, FILE, and GOPHER, as
69well as HTTP-post, HTTP-put, cookies, FTP upload,
70resumed transfers, passwords, portnumbers, SSL
71certificates, Kerberos, and proxies. It is powered
72by libcurl, the client-side URL transfer library.
73There are bindings to libcurl for over 20
74languages and environments.
75</desc_full>
76    <vitality_score>5784.57</vitality_score>
77    <vitality_percent>3.16</vitality_percent>
78    <vitality_rank>169</vitality_rank>
79    <popularity_score>6594.54</popularity_score>
80    <popularity_percent>13.81</popularity_percent>
81    <popularity_rank>105</popularity_rank>
82    <rating>8.50</rating>
83    <rating_count>21</rating_count>
84    <rating_rank>183</rating_rank>
85    <subscriptions>323</subscriptions>
86    <branch_name>Default</branch_name>
87    <url_project_page>http://freshmeat.net/projects/curl/</url_project_page>
88    <url_homepage>http://freshmeat.net/redir/curl/1612/url_homepage/</url_homepage>
89    <url_tgz>http://freshmeat.net/redir/curl/1612/url_tgz/</url_tgz>
90    <url_bz2>http://freshmeat.net/redir/curl/1612/url_bz2/</url_bz2>
91    <url_zip>http://freshmeat.net/redir/curl/1612/url_zip/</url_zip>
92    <url_changelog>http://freshmeat.net/redir/curl/1612/url_changelog/</url_changelog>
93    <url_rpm>http://freshmeat.net/redir/curl/1612/url_rpm/</url_rpm>
94    <url_deb>http://freshmeat.net/redir/curl/1612/url_deb/</url_deb>
95    <url_osx>http://freshmeat.net/redir/curl/1612/url_osx/</url_osx>
96    <url_bsdport>http://freshmeat.net/redir/curl/1612/url_bsdport/</url_bsdport>
97    <url_purchase></url_purchase>
98    <url_cvs>http://freshmeat.net/redir/curl/1612/url_cvs/</url_cvs>
99    <url_list>http://freshmeat.net/redir/curl/1612/url_list/</url_list>
100    <url_mirror>http://freshmeat.net/redir/curl/1612/url_mirror/</url_mirror>
101    <url_demo></url_demo>
102    <license>MIT/X Consortium License</license>
103    <latest_release>
104      <latest_release_version>7.12.2</latest_release_version>
105      <latest_release_id>176085</latest_release_id>
106      <latest_release_date>2004-10-18 02:22:23</latest_release_date>
107    </latest_release>
108    <screenshot_thumb></screenshot_thumb>
109    <authors>
110      <author>
111        <author_name>Daniel Stenberg</author_name>
112        <author_url>http://freshmeat.net/~bagder/</author_url>
113        <author_role>Owner</author_role>
114      </author>
115    </authors>
116    <descriminators>
117      <trove_id>12</trove_id>
118      <trove_id>226</trove_id>
119      <trove_id>3</trove_id>
120      <trove_id>2</trove_id>
121      <trove_id>188</trove_id>
122      <trove_id>216</trove_id>
123      <trove_id>200</trove_id>
124      <trove_id>220</trove_id>
125      <trove_id>164</trove_id>
126      <trove_id>90</trove_id>
127      <trove_id>89</trove_id>
128      <trove_id>809</trove_id>
129      <trove_id>150</trove_id>
130      <trove_id>224</trove_id>
131      <trove_id>900</trove_id>
132      <trove_id>839</trove_id>
133    </descriminators>
134    <dependencies>
135      <dependency type="recommended">
136        <dependency_release_id>0</dependency_release_id>
137        <dependency_branch_id>7464</dependency_branch_id>
138        <dependency_project_id>7464</dependency_project_id>
139        <dependency_project_title>OpenSSL (Default)</dependency_project_title>
140      </dependency>
141      <dependency type="optional">
142        <dependency_release_id>0</dependency_release_id>
143        <dependency_branch_id>0</dependency_branch_id>
144        <dependency_project_id>7443</dependency_project_id>
145        <dependency_project_title>OpenLDAP</dependency_project_title>
146      </dependency>
147      <dependency type="optional">
148        <dependency_release_id>0</dependency_release_id>
149        <dependency_branch_id>0</dependency_branch_id>
150        <dependency_project_id>12351</dependency_project_id>
151        <dependency_project_title>zlib</dependency_project_title>
152      </dependency>
153      <dependency type="optional">
154        <dependency_release_id>0</dependency_release_id>
155        <dependency_branch_id>0</dependency_branch_id>
156        <dependency_project_id>32047</dependency_project_id>
157        <dependency_project_title>Heimdal</dependency_project_title>
158      </dependency>
159      <dependency type="optional">
160        <dependency_release_id>0</dependency_release_id>
161        <dependency_branch_id>0</dependency_branch_id>
162        <dependency_project_id>44532</dependency_project_id>
163        <dependency_project_title>c-ares</dependency_project_title>
164      </dependency>
165    </dependencies>
166  </project>
167</project-listing>
168</datacheck>
169
170</reply>
171
172#
173# Client-side
174<client>
175<features>
176libz
177</features>
178<server>
179http
180</server>
181<name>
182HTTP GET with both content and transfer encoding
183</name>
184<command>
185http://%HOSTIP:%HTTPPORT/%TESTNUMBER --tr-encoding --compressed
186</command>
187</client>
188
189#
190# Verify data after the test has been "shot"
191<verify>
192<strippart>
193s/^Accept-Encoding: [a-zA-Z, ]*/Accept-Encoding: xxx/
194</strippart>
195<protocol>
196GET /%TESTNUMBER HTTP/1.1
197Host: %HOSTIP:%HTTPPORT
198User-Agent: curl/%VERSION
199Accept: */*
200Connection: TE
201TE: gzip
202Accept-Encoding: xxx
203
204</protocol>
205</verify>
206</testcase>
207