take care that request.getParameter is never called before
request.getInputStream, as it changes the behaviour of the servlet when
we get POST requests..