I'm trying to make a POST request, but I'm not sure how to set parameters. Something like:
RequestBuilder rb = new RequestBuilder(RequestBuilder.POST, url);
StringBuilder sb = new StringBuilder();
sb.append("key1=val1");
sb.append("&key2=val2");
sb.append("&key3=val3");
rb.setRequestData(sb.toString());
that does not seem to be the current way, though. What's the right way to send params like this with the POST?
The answer should be in here Making POST requests with parameters in GWT Try with builder.setHeader("Content-type", "application/x-www-form-urlencoded");
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With