At 07:03 AM 4/23/2004, you wrote:
This also begs the question as to when my servlet gets to see an
incoming request - I was concerned that by the time my servlet gets to
see the incoming request Tomcat had already read the incoming data and
stored it in the HttpServletRequest object - in which
Content length should be the same value as the Content-Length header.
Otherwise - I think it should be unknown. (Since it mirrors the cgi env var
CONTENT_LENGTH)
If possible - you should try to force the client to send a Content-Length
-Tim
Varley, Roger wrote:
There is a max POST size lim
- Original Message -
From: "Varley, Roger" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Friday, April 23, 2004 10:18 AM
Subject: RE: Tomcat and restricting the size of HttpServletRequest
>
> I remember a previous discussion on this and
>
> I remember a previous discussion on this and one of the
> solutions was to use
> an applet that would check the file size prior to transmission.
>
I can do that if the remote end is using my client - my concern is that once the URL
is "known" anyone could write a program that writes huge a
size? Just a thought.
Doug
www.parsonstechnical.com
- Original Message -
From: "Varley, Roger" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Friday, April 23, 2004 10:03 AM
Subject: RE: Tomcat and restricting the size of HttpServletRe
>
> There is a max POST size limit attribute on the Connectors.
>
> Otherwise - you can code for it too:
> request.getContentLength() == Size of posted content. -1 if
> the client did
> not provide a Content length.
>
I wondered about request.getContentLength() but was worried that it was c
There is a max POST size limit attribute on the Connectors.
Otherwise - you can code for it too:
request.getContentLength() == Size of posted content. -1 if the client did
not provide a Content length.
-Tim
Varley, Roger wrote:
Hi
I have an application where a client transmits data to a servle