-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Konstantin,

On 1/4/12 1:03 PM, Konstantin Kolinko wrote:
> But if you call certain APIs (e.g. getParameter()) the call will
> hang until entire POST request body is received from the client
> and processed. It is said that those methods "consume" the body of
> a POST request.

I should point out that this only happens if the request method is
POST and the content-type is application/x-www-form-urlencoded or if
the servlet is marked with @MultipartConfig and the content-type is
multipart/form-data, or if you have used the parseBodyMethods setting
with a value of anything other than "POST" and have an appropriate
content-type.

If the content-type is something else, or the request is not POST,
then Tomcat will only read the query string when getParameter() is called.

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.0.17 (Darwin)
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk8E30YACgkQ9CaO5/Lv0PDelACfbjyl6ajogZa6uCUVZ4jyiilC
6aMAoKUIxRLVw2GoGd2xAqbw2fDSkJky
=6VPd
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to