摘要:
发送请求String post_url = "http://10.1.3.121:9002/Mbomc/servlet/ControlSer;URL url = null;HttpURLConnection connection = null;OutputStreamWriter outWriter = null;url = new URL(post_url);connection = (HttpURLConnection) url.openConnection();connection.setDoInput(true);// 必须设置成TRUEconnection.setDoOut 阅读全文