//
if ("POST".equals(req.getMethod())) {
String contentType = req.getContentType();
if (contentType != null && contentType.length() > 0) {
Spliterator i = new Spliterator(contentType, ';');
if ("application/x-www-form-urlencoded".equals(i.next().trim())) {
Charset charset = defaultEncoding;
while (i.hasNext()) {
String v = i.next().trim();
if (v.startsWith("charset=")) {
charset = Charset.forName(v.substring("charset=".length()));
}
}
try {