Hi all

I have a servlet which does following in doPost method:

        String bufferFormData = request.getReader().readLine();

the servlet hangs in the readLine

following code gives me only one character from the request content:

        int nLen = req.getContentLength();
        if(nLen > 0)
        {
                byte b[] = new byte[nLen];                              
                int nCount = 0;                         
                for(int i = 0; i < nLen; i++)
                {
                         int nChar = req.getReader().read();
                         if(nChar == -1)
                                break;
                         b[i] = (byte)nChar;
                         nCount++;
                }
        }

Both versions work on IPlanet

Any ideas?

Thanks

Alex

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]

Reply via email to