Hello
I'm using following code to submit RPC request using PUT method. It does not seem to send the parameters:
However, simply changing PUT to POST makes the parameter 'comments' to show up in the Servlet.
Can someone point me in the right direction. Thanks.
I'm using following code to submit RPC request using PUT method. It does not seem to send the parameters:
Code:
RPCRequest req = new RPCRequest(); HashMap<String,String> data = new HashMap<String,String>(); data.put("comments", "TEST-GWT"); // <- never shows up in the servlet req.setParams(data); req.setEvalResult(false); req.setHttpMethod("PUT"); req.setActionURL("/app/customers"); req.setUseSimpleHttp(true); RPCCallback callback = new RPCCallback() {...} RPCManager.sendRequest(req, callback);
Can someone point me in the right direction. Thanks.
Comment