- move the chunked decoder to the encoding_api
[m6w6/ext-http] / tests / HttpResponse_004.phpt
1 --TEST--
2 HttpResponse - send cached gzipped data
3 --SKIPIF--
4 <?php
5 include 'skip.inc';
6 checkver(5);
7 checkcgi();
8 checkext('zlib');
9 ?>
10 --ENV--
11 HTTP_ACCEPT_ENCODING=gzip
12 HTTP_IF_NONE_MATCH="80b285463881575891e86ba7bfecb4d0"
13 --FILE--
14 <?php
15 HttpResponse::setGzip(true);
16 HttpResponse::setCache(true);
17 HttpResponse::setCacheControl('public', 3600);
18 HttpResponse::setData(file_get_contents(__FILE__));
19 HttpResponse::send();
20 ?>
21 --EXPECTF--
22 Status: 304
23 Content-type: %s
24 X-Powered-By: PHP/%s
25 Cache-Control: public, must-revalidate, max_age=3600
26 ETag: "80b285463881575891e86ba7bfecb4d0"