[OSM-dev] osmxapi and HTTP compression

Igor Brejc igor.brejc at gmail.com
Wed Aug 13 21:17:37 BST 2008

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:

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


More information about the dev mailing list