Thanks, Christopher!

A quick test with a longer timeout indicates that it should work. I'm now able to read at least some data :-)

elvin ibbotson

On 8 May 2008, at 14:30, Christopher Schmidt wrote:

On Thu, May 08, 2008 at 02:15:44PM +0100, elvin ibbotson wrote:


From: Steven te Brinke <[EMAIL PROTECTED]>
Date: 8 May 2008 11:31:43 BDT
To: elvin ibbotson <[EMAIL PROTECTED]>
Cc: talk@openstreetmap.org
Subject: Re: [OSM-talk] OSM XAPI - help!


Delivering data as an attachment is just adding one header to tell
the browser that it should present it as an attachment to the user.
Thus the content is the same as if it wasn't an attachment. The php
function file() works fine, as should any other function.

This doesn't seem to be what's happening here. There is a header
indicating the data is included in an attachment:
Content-Disposition: attachment; filename=data.osm

That's just a header. It doesn't mean anything.

The html file itself does not include the OSM data, just some stuff
about the parameters of the call, copyright, etc.
If I call the xapi script using a browser it downloads the data.osm
file but if it is called from my own PHP script (on my server) I just
get the html file and not the data file.

There is no "HTML file". What you're probably getting is the XML header, which is delivered immediately, and your connection is timing out before
you load the rest of the data: osmxapi delivers a header immediately,
and then delivers the rest of the data as it becomes available.

I would investigate the timeouts on the connection mechanism you're
using.

Regards,
--
Christopher Schmidt
MetaCarta


_______________________________________________
talk mailing list
talk@openstreetmap.org
http://lists.openstreetmap.org/cgi-bin/mailman/listinfo/talk

Reply via email to