On Wed, 28 May 2008, Stefan de Konink wrote: > 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) > > [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]
I have now added: HTTP/1.0 200 OK Connection: Keep-Alive Keep-Alive: timeout=15 Date: Wed, 28 May 2008 10:05:27 GMT Server: Cherokee/0.7.0 (UNIX) Content-Length: 1061096 Content-Type: text/xml; charset=utf-8 Content-Disposition: attachment; filename="map.osm" But still no can do. Java error: org.xml.sax.SAXParseException: The processing instruction target matching "[xX][mM][lL]" is not allowed. Stefan _______________________________________________ dev mailing list [email protected] http://lists.openstreetmap.org/cgi-bin/mailman/listinfo/dev

