users@glassfish.java.net

Re: Gzip encoding

From: Patrick Julien <pjulien_at_spectrumdt.com>
Date: Mon, 22 Sep 2008 11:48:55 -0400

Yes, I can, but what is it that you want precisely? The http headers of the
client? The http headers from the server response? Logs from the server?

Also, if I'm not mistaken, you want this option to be set in the JVM
settings of the server?

On Mon, Sep 22, 2008 at 10:47 AM, Jeanfrancois Arcand <
Jeanfrancois.Arcand_at_sun.com> wrote:

> Salut,
>
>
> Patrick Julien wrote:
>
>> I've been able to get gzip encoding to work but the server performs the
>> gzip compression if and only if the port is specified.
>>
>> I have glassfish v2ur2 on Linux. The http listener is on port 8080 and
>> I'm using iptables to redirect port 80 to port 8080 in order to avoid
>> running glassfish as root.
>>
>> Now, if I access the server by http://x.y.z.w:8080, the http response is
>> encoded with gzip. Accessing the server with only http://x.y.z.w however
>> I get a response that isn't encoded with gzip.
>>
>> Must something specific be done in the configuration of the http listener
>> here or is this a bug?
>>
>
> Can you add the following property and send back the result when you send
> http://x.y.z.w?
>
> -Dcom.sun.enterprise.web.connector.grizzly.enableSnoop=true
>
> I suspect some headers are lost and that compression algorithm doesn't
> apply.
>
> Thanks
>
> -- Jeanfrancois
>
>
>
>> --
>> http://www.spectrumdt.com
>> http://codepimps.org
>>
>>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>
>


-- 
http://www.spectrumdt.com
http://codepimps.org