+
+ public static MultiMap<String, String> postparams(Request req) {
+ if(req.method() != "POST")
+ return(null);
+ String ctype = req.inheaders().get("Content-Type");
+ if(ctype == null)
+ return(null);
+ ctype = ctype.toLowerCase();
+ if(ctype.equals("application/x-www-form-urlencoded")) {
+ byte[] data;
+ try {
+ return(urlparams(new InputStreamReader(req.input(), "UTF-8")));
+ } catch(IOException e) {
+ return(null);
+ }
+ }
+ return(null);
+ }