[OSM-dev] Strange: nodes appearing at Lat 0 Lon 0 - Additional Info

Marc Schütz schuetzm at gmx.net
Wed Aug 6 21:29:41 BST 2008


Am Mittwoch, 6. August 2008 22:20 schrieb m*sh:
> Am Mi, 6.08.2008, 19:59, schrieb Marc Schütz:
> > Am Mittwoch, 6. August 2008 21:43 schrieb Tom Hughes:
> >> > The HTTP-Request-Method is DELETE.
> >>
> >> No, the request method is PUT which is why they aren't being deleted.
> >
> > If I'm reading the API specs correctly, there shouldn't be a payload on
> > DELETE.
>
> I tried it without a payload but got an error without this.

Here is what JOSM does, maybe it helps:

Client -> Server:
DELETE /api/0.5/node/285567671 HTTP/1.1 
Authorization: Basic <geht-keinen-was-an>
User-Agent: Java/1.5.0_15 
Host: www.openstreetmap.org 
Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2 
Connection: keep-alive 
Content-type: application/x-www-form-urlencoded 
Content-Length: 190 
 
<?xml version='1.0' encoding='UTF-8'?>
<osm version='0.5' generator='JOSM'>
  <node id='285567671' visible='true' old_version='1' lat='49.955127902576066' 
lon='11.565428381016948' />
</osm>

Server -> Client:
HTTP/1.1 200 OK 
Connection: close 
Content-Type: text/html; charset=utf-8 
X-Runtime: 0.04100 
ETag: "7215ee9c7d9dc229d2921a40e899ec5f" 
Cache-Control: private, max-age=0, must-revalidate 
Content-Length: 1 
Date: Wed, 06 Aug 2008 20:26:08 GMT 
Server: lighttpd/1.4.13 

Regards, Marc
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.openstreetmap.org/pipermail/dev/attachments/20080806/82587bfa/attachment.pgp>


More information about the dev mailing list