Server to server POST request can be made using Apache Commons HttpClient library.
You need to include http-client jar file in project/lib folder and execute following lines of code:
HttpClient client = new HttpClient() String url = "http://localhost:8080/test/person/delete/1" PostMethod method = new PostMethod(url) int returnCode = client.executeMethod(method) //Response Code: 200, 302, 304 etc. def response = method.getResponseBodyAsString() // Actual response
Hope it helps