Http Post

108 views
Skip to first unread message

Albertus Kruger

unread,
Oct 29, 2012, 5:27:31 AM10/29/12
to codenameone...@googlegroups.com
Hi,

I have created a php script that accepts 3 variables and inserts the 3 variables into a mysql database. I would appreciate it if someone can give me an example of how to do an http post in codename one. I have googled it but couldn't get any examples. I have tried this in eclipse as well but could not get it working. Can I use or try the same code from eclipse in codename one ?

Regards,
Albertus

P.s I'm still new at this.

Albertus Kruger

unread,
Oct 29, 2012, 5:35:00 AM10/29/12
to codenameone...@googlegroups.com
I'm mainly writing for the Android but it would be cool if i can get it to work on the other devices as well.

Shai Almog

unread,
Oct 29, 2012, 5:47:24 AM10/29/12
to codenameone...@googlegroups.com
You can use the ConnectionRequest class and the NetworkManager. Checkout the http sections within the developer guide for samples and the Webservice demo within the Kitchen sink app.

austi...@gmail.com

unread,
Nov 7, 2012, 6:39:38 AM11/7/12
to codenameone...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages