private static String getPostParameter(HttpServletRequest request) throws IOException {
BufferedInputStream buf = null;
int iContentLen = request.getContentLength();
byte sContent[] = new byte[iContentLen];
String sContent2 = null;
try {
buf = new BufferedInputStream(request.getInputStream());
buf.read(sContent, 0, sContent.length);
sContent2 = new String(sContent,0,iContentLen,"UTF-8");
} catch (IOException e) {
throw new IOException("Parse data error!",e);
} finally {
try {
buf.close();
} catch (IOException e) {
}
}
return sContent2;
}