}
}
try {
byte[] bytes = Tools.copy(req.getInputStream(), new ByteArrayOutputStream()).toByteArray();
String form = new String(bytes, charset);
FormURLEncodedParser parser = new FormURLEncodedParser(defaultEncoding, form, 0, form.length());
for (RequestParameter parameter : parser) {
if (requestParameters.isEmpty()) {
requestParameters = new HashMap<String, RequestParameter>();
}
parameter.appendTo(requestParameters);