日期:2014-05-20 浏览次数:20636 次
StringBuffer info=new java.lang.StringBuffer(); InputStream in=request.getInputStream(); BufferedInputStream buf=new BufferedInputStream(in); String query=""; byte[] buffer=new byte[1024]; int iRead; while((iRead=buf.read(buffer))!=-1) { info.append(new String(buffer,0,iRead,"UTF-8")); } System.out.println("info=="+info);