http-request icon indicating copy to clipboard operation
http-request copied to clipboard

Creating a POST request with JSON payload

Open reyraa opened this issue 9 years ago • 2 comments

Is it possible to make a post request with content type of application/json and to send a json object?

reyraa avatar Oct 25 '15 10:10 reyraa

HTTPRequest req = HTTPRequest.post(url).header(key, value).send("JSON string"); int code = req.code();

foxty avatar Oct 26 '15 08:10 foxty

@kevinsawicki I believe this issue can be closed now.

aalvrz avatar Oct 06 '17 20:10 aalvrz