Think I found it in some of my old code its something like this right?
final ConnectionRequest r = new ConnectionRequest()
{
@Override
protected void buildRequestBody(OutputStream os) throws
IOException
{
_("/////////////////////////////buildRequestBody adding
payload of:");
_("-->\n"+payload);
os.write(payload.getBytes("UTF-8"));
}
On Tuesday, January 9, 2018 at 6:27:52 PM UTC+8, Gareth Murfin wrote:
>
> I have some android code I am porting to cn1, in my networking I do:
>
> HttpPost httppost = new HttpPost(url);
> httppost.setEntity(new StringEntity(s));
>
> I dont recall why I use setEntity, but I am posting a snippet of json to
> the server, what is the equivalent way to do this in CN1?
>
>
--
You received this message because you are subscribed to the Google Groups
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
Visit this group at https://groups.google.com/group/codenameone-discussions.
To view this discussion on the web visit
https://groups.google.com/d/msgid/codenameone-discussions/0d2b95de-4f0f-4ab6-bd59-3b832db0aecf%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.