This worked. Many thanks. I will try this solution to see if it is good 
enough.

Ticket here: http://jira.codehaus.org/browse/GEOS-6734.

For the record, my previous wget command was wrong. You actually have to 
specify the header accepting a compressed response:

wget --header='Accept-Encoding: gzip, deflate' -S "http://myrequest...";

Cheers.

On 10/24/2014 11:41 AM, Andrea Aime wrote:
> Right, in web.xml we have:
>
>     <filter>
>       <filter-name>GZIP Compression Filter</filter-name>
>       <filter-class>org.geoserver.filters.GZIPFilter</filter-class>
>       <init-param>
>           <!-- The compressed-types parameter is a comma-separated list
> of regular expressions.
>                If a mime type matches any of the regular expressions
> then it will be compressed.
>                -->
>           <param-name>compressed-types</param-name>
>
>   
> <param-value>text/.*,.*xml.*,application/json,application/x-javascript</param-value>
>       </init-param>
>     </filter>
>
> I guess you can add .*gml.* to the list and restart GeoServer.
> Could you open a ticket at jira.codehaus.org/browse/GEOS
> <http://jira.codehaus.org/browse/GEOS> as a reminder to do the same
> in GeoServer own code?
>
> Cheers
> Andrea
>
>
> On Fri, Oct 24, 2014 at 11:09 AM, Fernando G. C.
> <[email protected] <mailto:[email protected]>> wrote:
>
>     Thanks Jonathan, Andrea.
>
>     Analyzing the headers I see "Accept-Encoding: gzip, deflate" in the
>     request but the response gives "Transfer-Encoding: chunked" and no
>     "Content-Encoding" header. Looks like it is not compressing.
>
>     See here[1] for another example with wget.
>
>     Cheers.
>
>     [1]
>     wget -S
>     
> "http://192.168.0.18:8080/__geoserver/curso_ecuador/wms?__REQUEST=GetFeatureInfo&__EXCEPTIONS=application%2Fvnd.__ogc.se_xml&BBOX=-97.266226%2C-__7.139908%2C-69.760622%2C3.__576561&SERVICE=WMS&INFO___FORMAT=application%2Fvnd.ogc.__gml&QUERY_LAYERS=curso___ecuador%3Aecu_adm0&FEATURE___COUNT=50&Layers=curso_ecuador%__3Aecu_adm0&WIDTH=847&HEIGHT=__330&format=image%2Fpng&styles=__&srs=EPSG%3A4326&version=1.1.__1&x=581&y=133
>     
> <http://192.168.0.18:8080/geoserver/curso_ecuador/wms?REQUEST=GetFeatureInfo&EXCEPTIONS=application%2Fvnd.ogc.se_xml&BBOX=-97.266226%2C-7.139908%2C-69.760622%2C3.576561&SERVICE=WMS&INFO_FORMAT=application%2Fvnd.ogc.gml&QUERY_LAYERS=curso_ecuador%3Aecu_adm0&FEATURE_COUNT=50&Layers=curso_ecuador%3Aecu_adm0&WIDTH=847&HEIGHT=330&format=image%2Fpng&styles=&srs=EPSG%3A4326&version=1.1.1&x=581&y=133>"
>     -O /tmp/output.xml
>     --2014-10-24 11:03:16--
>     
> http://192.168.0.18:8080/__geoserver/curso_ecuador/wms?__REQUEST=GetFeatureInfo&__EXCEPTIONS=application%2Fvnd.__ogc.se_xml&BBOX=-97.266226%2C-__7.139908%2C-69.760622%2C3.__576561&SERVICE=WMS&INFO___FORMAT=application%2Fvnd.ogc.__gml&QUERY_LAYERS=curso___ecuador%3Aecu_adm0&FEATURE___COUNT=50&Layers=curso_ecuador%__3Aecu_adm0&WIDTH=847&HEIGHT=__330&format=image%2Fpng&styles=__&srs=EPSG%3A4326&version=1.1.__1&x=581&y=133
>     
> <http://192.168.0.18:8080/geoserver/curso_ecuador/wms?REQUEST=GetFeatureInfo&EXCEPTIONS=application%2Fvnd.ogc.se_xml&BBOX=-97.266226%2C-7.139908%2C-69.760622%2C3.576561&SERVICE=WMS&INFO_FORMAT=application%2Fvnd.ogc.gml&QUERY_LAYERS=curso_ecuador%3Aecu_adm0&FEATURE_COUNT=50&Layers=curso_ecuador%3Aecu_adm0&WIDTH=847&HEIGHT=330&format=image%2Fpng&styles=&srs=EPSG%3A4326&version=1.1.1&x=581&y=133>
>     Connecting to 192.168.0.18:8080... connected.
>     HTTP request sent, awaiting response...
>        HTTP/1.1 200 OK
>        Server: Apache-Coyote/1.1
>        Content-Disposition: inline;
>     filename=geoserver-__GetFeatureInfo.application
>        Content-Type: application/vnd.ogc.gml
>        Transfer-Encoding: chunked
>        Date: Fri, 24 Oct 2014 09:03:16 GMT
>     Length: unspecified [application/vnd.ogc.gml]
>     Saving to: `/tmp/output.xml'
>
>
>
>     On 10/23/2014 04:36 PM, Andrea Aime wrote:
>
>         On Thu, Oct 23, 2014 at 4:23 PM, Jonathan Moules
>         <[email protected] <mailto:[email protected]>
>         <mailto:J.Moules@__hrwallingford.com
>         <mailto:[email protected]>>> wrote:
>
>              Hi Fernando,
>
>              How about using compression? The serverlet container should
>         be able
>              to do on-the-fly compression of documents/data, including
>         GML. That
>              should significantly reduce the in-transit side.
>
>         Actually GeoServer should be doing this already, we have a servlet
>         filter that does it by default
>
>         Cheers
>         Andrea
>
>         --
>         ==
>         GeoServer Professional Services from the experts! Visit
>         http://goo.gl/NWWaa2 for more information.
>         ==
>
>         Ing. Andrea Aime
>         @geowolf
>         Technical Lead
>
>         GeoSolutions S.A.S.
>         Via Poggio alle Viti 1187
>         55054  Massarosa (LU)
>         Italy
>         phone: +39 0584 962313 <tel:%2B39%200584%20962313>
>         fax: +39 0584 1660272 <tel:%2B39%200584%201660272>
>         mob: +39 339 8844549 <tel:%2B39%20%20339%208844549>
>
>         http://www.geo-solutions.it
>         http://twitter.com/__geosolutions_it
>         <http://twitter.com/geosolutions_it>
>
>         *AVVERTENZE AI SENSI DEL D.Lgs. 196/2003*
>
>
>         Le informazioni contenute in questo messaggio di posta
>         elettronica e/o
>         nel/i file/s allegato/i sono da considerarsi strettamente
>         riservate. Il
>         loro utilizzo è consentito esclusivamente al destinatario del
>         messaggio,
>         per le finalità indicate nel messaggio stesso. Qualora riceviate
>         questo
>         messaggio senza esserne il destinatario, Vi preghiamo
>         cortesemente di
>         darcene notizia via e-mail e di procedere alla distruzione del
>         messaggio
>         stesso, cancellandolo dal Vostro sistema. Conservare il messaggio
>         stesso, divulgarlo anche in parte, distribuirlo ad altri soggetti,
>         copiarlo, od utilizzarlo per finalità diverse, costituisce
>         comportamento
>         contrario ai principi dettati dal D.Lgs. 196/2003.
>
>         The information in this message and/or attachments, is intended
>         solely
>         for the attention and use of the named addressee(s) and may be
>         confidential or proprietary in nature or covered by the
>         provisions of
>         privacy act (Legislative Decree June, 30 2003, no.196 - Italy's
>         New Data
>         Protection Code).Any use not in accord with its purpose, any
>         disclosure,
>         reproduction, copying, distribution, or either dissemination, either
>         whole or partial, is strictly forbidden except previous formal
>         approval
>         of the named addressee(s). If you are not the intended
>         recipient, please
>         contact immediately the sender by telephone, fax or e-mail and
>         delete
>         the information in this message that has been received in error. The
>         sender does not give any warranty or accept liability as the
>         content,
>         accuracy or completeness of sent messages and accepts no
>         responsibility
>         for changes made after they were sent or for other risks which
>         arise as
>         a result of e-mail transmission, viruses, etc.
>
>
>         ------------------------------__-------------------------
>
>
>
>
> --
> ==
> GeoServer Professional Services from the experts! Visit
> http://goo.gl/NWWaa2 for more information.
> ==
>
> Ing. Andrea Aime
> @geowolf
> Technical Lead
>
> GeoSolutions S.A.S.
> Via Poggio alle Viti 1187
> 55054  Massarosa (LU)
> Italy
> phone: +39 0584 962313
> fax: +39 0584 1660272
> mob: +39  339 8844549
>
> http://www.geo-solutions.it
> http://twitter.com/geosolutions_it
>
> *AVVERTENZE AI SENSI DEL D.Lgs. 196/2003*
>
> Le informazioni contenute in questo messaggio di posta elettronica e/o
> nel/i file/s allegato/i sono da considerarsi strettamente riservate. Il
> loro utilizzo è consentito esclusivamente al destinatario del messaggio,
> per le finalità indicate nel messaggio stesso. Qualora riceviate questo
> messaggio senza esserne il destinatario, Vi preghiamo cortesemente di
> darcene notizia via e-mail e di procedere alla distruzione del messaggio
> stesso, cancellandolo dal Vostro sistema. Conservare il messaggio
> stesso, divulgarlo anche in parte, distribuirlo ad altri soggetti,
> copiarlo, od utilizzarlo per finalità diverse, costituisce comportamento
> contrario ai principi dettati dal D.Lgs. 196/2003.
>
> The information in this message and/or attachments, is intended solely
> for the attention and use of the named addressee(s) and may be
> confidential or proprietary in nature or covered by the provisions of
> privacy act (Legislative Decree June, 30 2003, no.196 - Italy's New Data
> Protection Code).Any use not in accord with its purpose, any disclosure,
> reproduction, copying, distribution, or either dissemination, either
> whole or partial, is strictly forbidden except previous formal approval
> of the named addressee(s). If you are not the intended recipient, please
> contact immediately the sender by telephone, fax or e-mail and delete
> the information in this message that has been received in error. The
> sender does not give any warranty or accept liability as the content,
> accuracy or completeness of sent messages and accepts no responsibility
> for changes made after they were sent or for other risks which arise as
> a result of e-mail transmission, viruses, etc.
>
>
> -------------------------------------------------------

------------------------------------------------------------------------------
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to