If possible - you should try to force the client to send a Content-Length
-Tim
Varley, Roger wrote:
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 calculated by Tomcat rather than relying on it being set by the client. Either way, if the client doesn't specify the length or lies about it then I'm still in danger of running out of room.
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 case request.getContentLength() is of no help.
Regards Roger
__________________________________________________________________________
This e-mail and the documents attached are confidential and intended solely for the addressee; it may also be privileged. If you receive this e-mail in error, please notify the sender immediately and destroy it.
As its integrity cannot be secured on the Internet, the Atos Origin group liability cannot be triggered for the message content. Although the sender endeavours to maintain a computer virus-free network, the sender does not warrant that this transmission is virus-free and will not be liable for any damages resulting from any virus transmitted.
__________________________________________________________________________
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
