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

Taylan,

On 3/3/2009 8:32 AM, Taylan Develioglu wrote:
> That's a very interesting point there you make regarding the
> content-type. I am not sure why we are using it that way because it's a
> normal post that's being done. Could it be that this is causing apr in
> some instances to reject the content?
> Possibly NIO allowing some cases where APR does not.

I have a couple of thoughts:

1. Following-up on André's idea, SRV.3.1.1 of the servlet specification
has this to say about POST data:

"
The following are the conditions that must be met before post form data
will
be populated to the parameter set:
1. The request is an HTTP or HTTPS request.
2. The HTTP method is POST.
3. The content type is application/x-www-form-urlencoded.
4. The servlet has made an initial call of any of the getParameter
family of methods on the request object.

If the conditions are not met and the post form data is not included in
the parameter set, the post data must still be available to the servlet
via the request object’s input stream. If the conditions are met, post
form data will no longer be available for reading directly from the
request object’s input stream.
"

So, if your content-type is NOT application/x-www-form-urlencoded,
you'll have to read the InputStream yourself and parse the contents. I
didn't see anything in your original post that suggests you were using
multipart/form-data, so I'm not sure this is going to lead anywhere.

2. Are you running into an authentication problem? Tomcat saves POST
requests to protected resources and re-plays them after a successful
authentication. There is a maximum POST data setting (maxPostSize) for
the <Connector> element that can limit the maximum payload that Tomcat
will store for a POST request that is not-yet-authenticated. The default
is 2MB so I suspect you're not running into that. But it's worth
thinking about.

- -chris

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkmtX6YACgkQ9CaO5/Lv0PDgtQCdHIuBk4m7bIOOV2z6YhYFMG59
IHoAnRkrirrIRNY13Szsf18oD0pshWG4
=pCtv
-----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