[OSM-dev] Help needed: Problems with DELETE (using Delphi-Indy)

Frederik Ramm frederik at remote.org
Sun Jun 15 18:40:22 BST 2008


Hi,

>> I haven't a clue about Delphi but the last line seems a bit wrong, is
>> there no "httpLink.Delete(...)"?
> It is "freed" afterwards out of the scope of this routine.

That was not what I meant. I meant that you used a "put" command to 
execute the "delete" method, whereas you had previously used "put" to 
execute "put" and "get" to execute "get". So I was wondering why there 
wasn't a "delete" method as well. There *are* HTTP stacks that only 
support GET/POST and sometimes HEAD but nothing more; maybe you are 
using one of them.

You could of course just implement DELETE yourself by using a generic 
TCP socket class, have it connect to the server and send DELETE 
/api/0.5/way/1234 HTTP/1.0 but you'd need to do the authentication bit 
yourself, i.e. send a proper authorization header (google for HTTP BASIC 
  AUTH).

Are you implementing an editor? You said initially that you were 
extending your GPS display routines to display OSM data, why would you 
want to delete OSM data from the server?

Bye
Frederik

-- 
Frederik Ramm  ##  eMail frederik at remote.org  ##  N49°00'09" E008°23'33"




More information about the dev mailing list