Look at <a href="http://en.wikipedia.org/wiki/HTTP_compression">http://en.wikipedia.org/wiki/HTTP_compression</a><br>In essence the HTTP client has to send the string<br><br>Accept-Encoding: gzip,deflate<br><br>in its headers. And if the server supports one of the encodings it sends the follwing response in the response headers<br>
<br>Vary: Accept-Encoding<br>Content-Encoding: gzip<br><br>And btw surveys show that gzip performs the best at xml compression. So how about making the server to use gzip compression<br><br><br><div class="gmail_quote">On Thu, Mar 27, 2008 at 8:23 PM, Tom Hughes <<a href="mailto:tom@compton.nu">tom@compton.nu</a>> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">In message <<a href="mailto:8fcd02310803270732g70f21edcuf694bcf1f28f1451@mail.gmail.com">8fcd02310803270732g70f21edcuf694bcf1f28f1451@mail.gmail.com</a>><br>
<div class="Ih2E3d"> <a href="mailto:80n80n@gmail.com">80n80n@gmail.com</a> wrote:<br>
<br>
> Once the query has completed the output is streamed directly.<br>
><br>
> I suppose I could build in an option to compress it first. I don't know how<br>
> much time it would save, but it would certainly free up a bit of bandwidth.<br>
<br>
</div>Given that the server is apache mod_deflate can do all the work for<br>
you given a suitable configuration (and so long as the browser passes<br>
an Accept-Encoding header to indicate it supports compression).<br>
<br>
BTW, the xapi responses are coming back with a rather bizarre<br>
content type of "html/xml" at the moment...<br>
<br>
Tom<br>
<font color="#888888"><br>
--<br>
Tom Hughes (<a href="mailto:tom@compton.nu">tom@compton.nu</a>)<br>
<a href="http://www.compton.nu/" target="_blank">http://www.compton.nu/</a><br>
</font><div><div></div><div class="Wj3C7c"><br>
_______________________________________________<br>
dev mailing list<br>
<a href="mailto:dev@openstreetmap.org">dev@openstreetmap.org</a><br>
<a href="http://lists.openstreetmap.org/cgi-bin/mailman/listinfo/dev" target="_blank">http://lists.openstreetmap.org/cgi-bin/mailman/listinfo/dev</a><br>
</div></div></blockquote></div><br>