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";
 
-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
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]>> 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
> 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