BufferedReader reader = null;
StringBuilder sb = new StringBuilder();
try
{
reader = new BufferedReader(new InputStreamReader(request
.getInputStream(), "utf-8"));
String line = null;
while ((line = reader.readLine()) != null)
{
sb.append(line);
}
} catch (IOException e)
{
e.printStackTrace();
} finally
{
try
{
if (null != reader)
{
reader.close();
}
} catch (IOException e)
{
}
}
return sb.toString();