[OSM-dev] X_HTTP_METHOD_OVERRIDE

Matt Amos zerebubuth at gmail.com
Fri Dec 18 21:57:43 GMT 2009


On Fri, Dec 18, 2009 at 9:16 PM, hy-soft <hy-soft at sha-mash.de> wrote:
> Matt Amos wrote:
>> On Fri, Dec 18, 2009 at 2:27 PM, hy-soft <hy-soft at sha-mash.de> wrote:
>
>>> I can not get it to work, neither with curl
>>> which hasn't implemented a delete Method, so I tried
>>> X_HTTP_METHOD_OVERRIDE: DELETE
>>>
>>> curl -v  -G -H "X_HTTP_METHOD_OVERRIDE: DELETE" -T DOSM0134.XML
>>> "http://api.openstreetmap.org/api/0.6/node/595647268"
>>
>> that's not the command listed on the wiki page. the command listed
>> there (updated for delete) is:
>> curl -v -v -u username:password -d @node.osm -H
>> "X_HTTP_METHOD_OVERRIDE: DELETE"
>> "http://api06.dev.openstreetmap.org/api/0.6/node/1168959"
>
> Well I omitted user&password in the example above
> The command I sent did actually trigger an update of the node.
>
> Now when I use a post [option -d] as given in your example it works -
> with curl.
>
> But using POST with indy-sockets returns an Error 405: method not allowed.
>
> So thanks for clearing up the matter regarding curl, but actually I
> still can not use the api via indy-sockets.
>
> The header is being sent - but obviously not recognized then.

if the header is being sent then i don't see why that would be any
different from what curl is doing. do you have a trace of the
conversation between your app and the server to help debug what's
going wrong?

cheers,

matt




More information about the dev mailing list