safer PUT/DELETE method call