tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Smith <>
Subject Re: Loss of body POST request...
Date Tue, 15 Sep 2009 12:35:07 GMT
Servlets handle uri encoded POSTs just fine.  It's when the POST body is
encoded differently like with mulipart -- that's where tools like
fileupload come into the picture.  Either way, the POST body should be
completely available to the servlet, even if it's just as an input stream. 

Were there any exceptions in the logs for broken pipes or similar stuff
that might shed some light on the issue?


Tommy Pham wrote:
> ----- Original Message ----
>> From: Eugene <>
>> To: Tomcat Users List <>
>> Sent: Tuesday, September 15, 2009 4:16:43 AM
>> Subject: Re: Loss of body POST request...
>> What has FileUpload, if the request body is lost! 
>> I want to know why, in principle it may be lost?
>> -- 
>> Best Regards, Eugene Batogov
>> _______________________________________
> From my readings, I remember that the servlet doesn't handle POST by default.  So you
have to implement your own.  I've looked into options available and the best I could find,
IMHO,  and others have suggested is Commons FileUpload.  It will handle all POST multipart,
including the file upload.  Look into the Streams API.
> Regards,
> Tommy

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message