[Mod_gzip] Mod_gzip not able to handle POST method

mod_gzip@lists.over.net mod_gzip@lists.over.net
Mon, 20 Jan 2003 18:43:50 +0530


     hi,
     
     Thanks for replying.
     
     I am referring to the same instance of User-agent. 
     
     Appreciate all help.
     
     regards,
     Sudhir Rao
     
     **********************************************************************
     

Hi Sudhir,


> The theoretical meaning of 'mod_gzip: DECLINED:NO_ACCEPT_ENCODING'
> means that the  request doesn't contain an Accept-Encoding header
> - obviously this UserAgent doesn't understand gzip-compressed data.
>
> My Question :- if UserAgent doesn't understand gzip-compressed data,
> then how come the UserAgent understands gzip-compressed data for GET
method.

are we talking about the same _type_ of user agent, or about
the same _instance_?

Especially when it comes to M$IE, this user agent supports
gzip encoding only when configured appropriately.

See
     http://www.schroepl.net/projekte/mod_gzip/browser.htm#Microsoft
and        http://www.schroepl.net/projekte/msie/
     
     for details.
     
     Regards, Michael
     
     ______________________________ Reply Separator 
     _________________________________
     Subject: [Mod_gzip] Mod_gzip not able to handle POST method
     Author:  Sudhir RAO at india,noida,no1
     Date:    1/20/03 10:59 AM
     
     
     hi,
     
     Thanks for replying.
     
     Is it possible to specify at the BROWSER level the method[POST , GET] 
     for which compression should be enabled ??  If yes, how should it be 
     enabled? We use IE 6.0 with both settings of HTTP1.1 enabled.
     
     My understanding is that once the protool is specified as HTTP1.1 , the 
     browser would be default send the Accept-Encoding header. This is the 
     reason of me being amazed at the fact  that GET method is being 
     compressed but for POST method mod_gzip throws-up the foll. message    
              mod_gzip: DECLINED:NO_ACCEPT_ENCODING'.
     
     
     Appreciate all help.
     
     regards,
     Sudhir Rao
     ST Microelectronics LTD.
     Noida INDIA
     
     **********************************************************************
     
     martin sepulveda replied
     ------------------------ 
     
     are you sure the browser is sending a Accept-Encoding header along 
     with the POST?
     
     if not so that would be the correct behaviour
     
     m.
     
     **********************************************************************
     
     --------------------ORIGINAL MESSAGE---------------------------------
     
     
     hi All,
     
     I would like to compress the data dished out by POST method.
     
     Mod_gzip version :- mod_gzip1.3.26.1a ----------------
     
     HTTPD.conf file contents :-
     ------------------------
     <IfModule mod_gzip.c>
     mod_gzip_on Yes
     mod_gzip_can_negotiate       Yes
     #mod_gzip_static_suffix       .gz
     AddEncoding               gzip .gz
     mod_gzip_command_version  show_me_the_version_number 
     mod_gzip_handle_methods GET POST
     #mod_gzip_update_static        No
     mod_gzip_keep_workfiles       No
     mod_gzip_minimum_file_size    1
     mod_gzip_maximum_file_size    500000 mod_gzip_maximum_inmem_size 
     60000
     mod_gzip_min_http              1000
     mod_gzip_item_include file .*
     mod_gzip_item_include uri /servlet*
     
     
     
     Compression works fine for GET method - it displays the following 
     message for POST method : 
     ----------------------------------------------------------------- 
     202.1.150.214 - - [17/Jan/2003:19:37:12 +0530] "POST 
     /arsys/servlet/WorkflowServlet HTTP/1.1" 200 30 "-" "Mozilla/4.0 
     (compatible; MSIE 6.0; Win32)" mod_gzip: DECLIN ED:NO_ACCEPT_ENCODING 
     In:0 Out:0:0pct.
     202.1.150.214 - - [17/Jan/2003:19:37:12 +0530] "POST 
     /arsys/servlet/WorkflowServlet HTTP/1.1" 200 30 "-" "Mozilla/4.0 
     (compatible; MSIE 6.0; Win32)" mod_gzip: DECLIN ED:NO_ACCEPT_ENCODING 
     In:0 Out:0:0pct.
     
     
     The theoretical meaning of 'mod_gzip: DECLINED:NO_ACCEPT_ENCODING' 
     means that the  request doesn't contain an Accept-Encoding header - 
     obviously this UserAgent doesn't understand gzip-compressed data.
     
     My Question :- if UserAgent doesn't understand gzip-compressed data , 
     then how come the UserAgent understands gzip-compressed data for GET 
     method.
     
     Appreciate all help.
     
     regards,
     Sudhir Rao
     ST Microelectronics LTD.
     Noida INDIA