[OSM-talk] OSM XAPI - help!

elvin ibbotson elvin.ibbotson at poco.org.uk
Thu May 8 16:24:57 BST 2008


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 <s.tebrinke at student.utwente.nl>
>>> Date: 8 May 2008 11:31:43 BDT
>>> To: elvin ibbotson <elvin.ibbotson at poco.org.uk>
>>> Cc: talk at 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
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/talk/attachments/20080508/6aeb37b7/attachment.html>


More information about the talk mailing list