public static String sendHttpMsg(String content) throws Exception {
String url=ManagerUtil.getProperty("src/conf/cert-key.properties").getProperty("url");
//String url="http://192.168.1.102/e/me/me.htm";
URL u = new URL(url);
HttpURLConnection conn = (HttpURLConnection) u.openConnection();
conn.setRequestMethod("POST");
conn.setDoInput(true);
conn.setDoOutput(true);
// conn.setInstanceFollowRedirects(true);
conn.setRequestProperty("content-type", "text/html");
conn.connect();
OutputStream out = conn.getOutputStream();
PrintWriter pw = new PrintWriter(out);
pw.print(content);
pw.flush();
out.flush();
pw.close();
out.close();
InputStream is = conn.getInputStream();
//InputStreamReader isr = new InputStreamReader(is);
java.io.BufferedReader isr = new BufferedReader(
new InputStreamReader(is, "utf-8"));
BufferedReader br = new BufferedReader(isr);
String s = br.readLine();
return s;
}