Thanks everyone , specially Vlad , gzip seems to be working fine on both aolserver 4.0.10 and aolserver 4.5.0 here are my finding which might help others.
Aolserver 4.0.10 ns_section ns/server/myserver/adp/compress ns_param enable true ns_param minsize 1024 and put "ns_adp_compress 1 "before sending out any adp . I put "ns_adp_compress 1" the first line in my adp files and it seems to be working fine . Aolserver 4.5.0 ns_section ns/server/myserver/adp ns_param gzip on ns_section ns/server/myserver ns_param gzip on ns_param gzipmin 4096 Yes i checked it has to be on both sections to change the minimum size . I also had to configure aolserver with a zlib library greater than 1.2 ( thanks Dossy for this tip ) using --with-zlib=/new/zliblocation One Issue: If I define tcl library location to acs code /web/tcl this compression does not work , but when i use the default aolserver /aol/modules/tcl location it works. does some one know why is this happening ? Here are the headers both browser and server with ACS tcl library and without TCL Library , it can be noticed that with ACS library the compression does not take place With ACS Library in nsd.tcl : http://192.168.1.100:8082/atif.adp GET /atif.adp HTTP/1.1 Host: 192.168.1.100:8082 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.3) Gecko/20070309 Firefox/2.0.0.3 Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9 ,text/plain;q=0.8,image/png,*/*;q=0.5 Accept-Language: en-us,en;q=0.5 Accept-Encoding: gzip,deflate Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7 Keep-Alive: 300 Connection: keep-alive Cookie: ad_browser_id=1134495427; last_visit=1176924629; ad_session_id=1135567972%2c0%2cEavcFwFuJZUv257cUFhDgUmmErzhdRkT%2c1176924629; second_to_last_visit=1176919612; section=js Cache-Control: max-age=0 HTTP/1.x 200 OK MIME-Version: 1.0 Date: Wed, 18 Apr 2007 19:39:39 GMT Server: AOLserver/4.0.10 Content-Type: text/html; charset=utf-8 Content-Length: 3959 Connection: keep-alive Without ACS Library in nsd.tcl : http://192.168.1.100:8082/atif.adp GET /atif.adp HTTP/1.1 Host: 192.168.1.100:8082 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.3) Gecko/20070309 Firefox/2.0.0.3 Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9 ,text/plain;q=0.8,image/png,*/*;q=0.5 Accept-Language: en-us,en;q=0.5 Accept-Encoding: gzip,deflate Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7 Keep-Alive: 300 Connection: keep-alive Cookie: ad_browser_id=1134495427; last_visit=1176924629; ad_session_id=1135567972%2c0%2cEavcFwFuJZUv257cUFhDgUmmErzhdRkT%2c1176924629; second_to_last_visit=1176919612; section=js Cache-Control: max-age=0 HTTP/1.x 200 OK Content-Encoding: gzip MIME-Version: 1.0 Date: Wed, 18 Apr 2007 19:42:05 GMT Server: AOLserver/4.0.10 Content-Type: text/html; charset Content-Length: 1241 Connection: keep-alive Thanks On 4/18/07, Jeff Rogers <[EMAIL PROTECTED]> wrote:
Juan José del Río wrote: > aT wrote: > >> I have ns_param gzip on , but do i still need to set some headers ? > > I don't know. > >> How do i know its gzipping anything ? > > telnet www.yourwebserver.com 80 > > And send a GET request. That won't invoke compression unless you include the appropriate Accept-encoding header. You need to sent a complete request like GET / HTTP/1.0 Host: myhost.com Accept-encoding: gzip -J -- AOLserver - http://www.aolserver.com/ To Remove yourself from this list, simply send an email to < [EMAIL PROTECTED]> with the body of "SIGNOFF AOLSERVER" in the email message. You can leave the Subject: field of your email blank.
-- Syed Atif Ali (cacrus) Desk: 971 4 3911914 -- AOLserver - http://www.aolserver.com/ To Remove yourself from this list, simply send an email to <[EMAIL PROTECTED]> with the body of "SIGNOFF AOLSERVER" in the email message. You can leave the Subject: field of your email blank.