Dears,

 The API for POST and GET are not unified:

POST doesn't accept parameterized requests (i.e http://host:port
/query?query=AQL&mode=asynchronous)

It takes the whole request URI and encode it as a query which can lead to
errors.

    protected void doPost(HttpServletRequest request, HttpServletResponse
response) throws ServletException,
            IOException {
        StringWriter sw = new StringWriter();
        IOUtils.copy(request.getInputStream(), sw,
StandardCharsets.UTF_8.name());
        String query = sw.toString();
        handleRequest(request, response, query);
    }


-- 

*Regards,*
Wail Alkowaileet

Reply via email to