[OSM-dev] High performance server [JOSM issues]

Francisco R. Santos frsantos at gmail.com
Wed May 28 11:55:45 BST 2008


On Wed, May 28, 2008 at 12:13 PM, Stefan de Konink <skinkie at xs4all.nl>
wrote:

> 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)
> >
> > skinkie at nemesis ~ $ 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

quoting from
http://www.velocityreviews.com/forums/t141650-sax-parser-and-ltxml-versionquot10quot-gt.html
:

"The XML declaration must be the *very first* thing in the XML file (per
the XML spec). No blank lines, whitespace, control characters, etc. may
precede it. In other words, the '<' must be at offset 0 from the
beginning of the file. The error message you describe is typical when
this is not the case."

Is there any blank space before the XML declaration?

Regards,
Quico
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/dev/attachments/20080528/cb634900/attachment.html>


More information about the dev mailing list