Re: ob_gzhandler encoding ???
| From: | Jason Caldwell | Date: | Sun, 19 May 2002 19:49:57 +0000 |
| Subject: | Re: ob_gzhandler encoding ??? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-98381@lists.php.net to get a copy of this message | ||
Will browsers that receive gzip encoded pages, transmit gzip encoded POST or
GET data back?
Jason
"Jason Caldwell" <jason@thinkingman.org> wrote in message
news:20020519181109.57420.qmail@pb1.pair.com...
> Does anyone know how I can test (and see) if my ob_gzhandler() is working?
>
> I've written the following script, and run it from the command line to
"see"
> the output -- hoping it's encoded -- it isn't -- so I want to make sure
I'm
> doing it right.
>
> <?
> header("Accept-Encoding: gzip, deflate");
> ob_start("ob_gzhandler");
> ?>
>
> some HTML code ....
>
> <?
> ob_end_flush();
> ob_end_clean();
> ?>
>
>
> I save then run the file:
>
> C:>php test.php
>
> Thanks
>
>