David kerber wrote:
Christopher Schultz wrote:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
David,
On 5/14/2009 8:34 AM, David kerber wrote:
len = req.getContentLength();
b = new byte[ len ];
Don't forget to check to see if getContentLength() returned zero.
I do, it's just not in that code snippet.
What is the content-type here? Is it application/x-www-form-urlencoded?
Are you calling req.getParameter() or any of the same family of
functions? If both of those are true, then Tomcat has already read the
body of the request, and you won't be able to re-read it.
I don't recall the content-type off the top of my head (and I don't
have the source of the sending app at hand), and I don't use
req.getParameter() at all. But the code works; it just seems to be a
little slow.
The content-type is application/binary.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org