1

Is it possible to send HTTP queries with verbs other than GET and POST in Codename one? Like PUT and DELETE. From what I see in the documentation, it is not possible: link

But I think that PUT and DELETE are so often used for REST APIs for update and delete that there should be a way to send HTTP PUT. So is it possible and if yes, could you post an example?

Hristo Vrigazov
  • 1,357
  • 2
  • 12
  • 20

1 Answers1

2

You can call PUT and/or DELETE by doing:

        ConnectionRequest req = new ConnectionRequest();
        ...
        req.setHttpMethod("PUT");

or

        req.setHttpMethod("DELETE");
Chen
  • 3,760
  • 1
  • 17
  • 21