1.通过post方法,发送数据至http server
2.大家通常忽略content-type和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);
……