public static void main(String[] args) throws InterruptedException {
InputStreamReader is = null;
String LOGON_SITE = "www.baidu.com";
int LOGON_PORT = 80;
String url=http://localhost:3306/myproject";
String comment = "你好你好你好你好";
HttpClient c=new HttpClient();
c.getHostConfiguration().setHost(LOGON_SITE, LOGON_PORT, "http");
PostMethod post = new PostMethod(url);
RequestEntity entity = new StringRequestEntity(comment, "text/xml","UTF-8");
post.setRequestEntity(entity);
c.executeMethod(post);
}