Marc Schütz wrote: >> Hello, >> >> Few days ago there was a discussion on using the HTTP compression for >> communicating with the main OSM API. Now I'm trying to use the >> compression for downloading the data from osmxapi (by setting the >> "Accept-encoding" header to "compress, gzip"), but it seems like the >> server is not supporting the HTTP compression - it returns uncompressed >> data. Am I doing something wrong or is the compression not available for >> osmxapi? >> > > Did you use "Accept-Encoding" or "Accept-encoding"? > Regards, Marc > > Good point, the casing was wrong., I tried now with the "Accept-Encoding" but I still seem to get uncompressed data. Here are request and response headers:
GET /api/0.5/*%5bbbox=15.4992223150861,46.4805918051996,15.5587116989618,46.5006955181927%5d HTTP/1.1 Accept-Encoding: compress, gzip Host: osmxapi.hypercube.telascience.org Connection: Keep-Alive HTTP/1.1 200 OK Date: Wed, 13 Aug 2008 20:11:57 GMT Server: Apache/2.2.3 (Debian) DAV/2 SVN/1.4.2 mod_python/3.2.10 Python/2.4.4 Content-Disposition: attachment; filename=data.osm Keep-Alive: timeout=1, max=20 Connection: Keep-Alive Content-Type: html/xml Content-Length: 400660 -- http://igorbrejc.net _______________________________________________ dev mailing list [email protected] http://lists.openstreetmap.org/listinfo/dev

