On Wed, 28 May 2008, Jon Burgess wrote: > How does the content-type for the HTTP download compare to the real API? > (try wget -S http://... and compare all the headers)
wget -S http://127.0.0.1:8000/about/0.5/map?bbox=4.372043399272871,52.06894868775914,4.420033124293988,52.11742099102069 --2008-05-28 11:45:55-- http://127.0.0.1:8000/about/0.5/map?bbox=4.372043399272871,52.06894868775914,4.420033124293988,52.11742099102069 Connecting to 127.0.0.1:8000... connected. HTTP request sent, awaiting response... HTTP/1.0 200 OK Connection: Keep-Alive Keep-Alive: timeout=15 Date: Wed, 28 May 2008 09:45:55 GMT Server: Cherokee/0.7.0 (UNIX) Content-Length: 1061096 Content-Type: text/xml Length: 1061096 (1.0M) [text/xml] Saving to: `map?bbox=4.372043399272871,52.06894868775914,4.420033124293988,52.11742099102069' 100%[======================================>] 1,061,096 --.-K/s in 0.004s 2008-05-28 11:45:56 (247 MB/s) - `map?bbox=4.372043399272871,52.06894868775914,4.420033124293988,52.11742099102069' saved [1061096/1061096] [EMAIL PROTECTED] ~ $ head -n 4 map\?bbox\=4.372043399272871\,52.06894868775914\,4.420033124293988\,52.11742099102069 <?xml version="1.0" encoding="UTF-8"?> <osm version="0.5" generator="Cherokee OSM API generator"> <node id="45111956" lat="52.069699999999997" lon="4.3723000000000001" visible="true" user="not_implemented" timestamp="2007-09-07T16:39:10+01:00"> <tag k="source" v="AND" /> [EMAIL PROTECTED] ~ $ wget -S http://openstreetmap.org/api/0.5/map?bbox=4.37204339 9272871,52.06894868775914,4.420033124293988,52.11742099102069 --2008-05-28 11:47:40-- http://openstreetmap.org/api/0.5/map?bbox=4.37204339927 2871,52.06894868775914,4.420033124293988,52.11742099102069 Resolving openstreetmap.org... 128.40.58.202 Connecting to openstreetmap.org|128.40.58.202|:80... connected. HTTP request sent, awaiting response... HTTP/1.0 200 OK Connection: close Content-Type: text/xml; charset=utf-8 X-Runtime: 28.31216 ETag: "98bab2d1997f8d1d32d6871855c03a6b" Cache-Control: private, max-age=0, must-revalidate Content-Disposition: attachment; filename="map.osm" Content-Length: 2209831 Date: Wed, 28 May 2008 09:47:45 GMT Server: lighttpd/1.4.13 Length: 2209831 (2.1M) [text/xml] Saving to: `map?bbox=4.372043399272871,52.06894868775914,4.420033124293988,52.11 742099102069.1' 100%[======================================>] 2,209,831 637K/s in 3.4s 2008-05-28 11:48:12 (631 KB/s) - `map?bbox=4.372043399272871,52.06894868775914,4 .420033124293988,52.11742099102069.1' saved [2209831/2209831] head -n 4 map\?bbox\=4.372043399272871\,52.06894868775914\,4.420033124293988\,52.11742099102069.1 <?xml version="1.0" encoding="UTF-8"?> <osm version="0.5" generator="OpenStreetMap server"> <node id="45111956" lat="52.0697" lon="4.3723" user="AND" visible="true" timestamp="2007-09-07T16:39:10+01:00"> <tag k="source" v="AND"/> The only relevant thing *might* be the charset, but I have many doubt about it. Stefan _______________________________________________ dev mailing list [email protected] http://lists.openstreetmap.org/cgi-bin/mailman/listinfo/dev

