Yes this works.
On Tuesday, January 9, 2018 at 8:58:05 PM UTC+8, Gareth Murfin wrote:
>
> 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/17e78010-5d84-4ec3-93ca-d7d9ed0855fe%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.