1. Send data to HTTP Server2 through the POST method. You usually ignore Content-Type and Content-Length ... conn.setRequestMethod (httpConnection.post);
Conn.setRequestProperty ("User-Agent", "Profile / MIDP-1.0 Configuration / CLDC-1.0"); Conn.setRequestProperty ("Content-Language", "EN-US");
Postmsg = Request.getbytes ();
Conn.setRequestProperty ("Content-Type", "Application / X-WWW-Form-Urlencoded"); Conn.setRequestProperty ("Content-Length", Integer.Tostring (postmsg! = null? postmsg.length: 0));
Out = conn.openoutputstream (); out.write (postmsg); ......