in reply to Re: OFT: Gzipping output from a CGI
in thread OFT: Gzipping output from a CGI

I would perfer to let apache handle it, however, I am not the Apache expert in my company, and the resident apache expert has not been able to get a working compliation of apache with mod_gzip. Without that, I'd like to do it in perl, and seems there must be a way to tell the browser that the content is zipped. if "mod_gzipp" can do it, there must be a way to do it with perl, i.e. a header that tells the browser to unzip the output.

May the Force be with you

Replies are listed 'Best First'.
Re^3: OFT: Gzipping output from a CGI
by gaal (Parson) on Nov 30, 2004 at 21:32 UTC
    There's also mod_deflate your apache person can try.

    If you want to see the header, use something like snoop or tcpdump or Firefox's Live HTTP Headers extension on a site that uses compressed pages. Here's one. Then you have to write the header soon enough in your CGI; and then compress everything following (once again, with the IO layer it'd be easier, as well as better since you don't have to wait until you have all the data before sending it).