Closed criaturaExperimental closed 5 years ago
+1, looking for this feature too.
I found something, that helped me at least: https://forum.processing.org/two/discussion/comment/50477/#Comment_50477
simply use addData( String key, String value ) function from this library , even if i can't use it 'cause processing don't recognize it
in your case it would be post.addData( "url", "http://example.com/picture.jpg" );
It works, thank you!
How can I add a body to a post request? Is there a function I could use like write()? Or some type of workaround?
I want to pass this json info as the body of the request:
{ "url": "http://example.com/picture.jpg" }
Thanks :)