nread += in.read(c_content, nread, length);
int tmp = in.read(c_content, nread, remaining); nread += tmp; remaining -= tmp;
    protected void readContent(int length) throws IOException {        char[] c_content = new char[length];        int nread = 0;        try {            while (nread < length) {                nread += in.read(c_content, nread, length);                Debug.message("httpconnection", "Length of content read "                        + nread);            }        } catch (java.io.IOException ioe) {            Debug.error("HttpConnection | readContent -- Exception while reading content(key-values from POST) "                    + ioe.getMessage());        }        String content = new String(c_content);        content = content.trim();        if (Debug.debugging("httpconnection")) {            Debug.output("HttpConection showing Content :-- " + content);        }        //processGetCommand(content);        HttpRequestEvent event = server.fireHttpRequestEvent(content, out);        // Check to see if the Writer in the Event was used. If it        // was, then the listeners contributed concatenated text, and        // the result needs to be retrieved and sent back.        if (event.isWriterUsed()) {            Writer writer = event.getWriter();            String result = writer.toString();            writeHttpResponse(out, null, result);        }        // else - assume that the binary response listeners took care        // of writing things back on their own,        out.flush();        close();    }