tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Smith <d...@cornell.edu>
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?

--David

Tommy Pham wrote:
> ----- Original Message ----
>   
>> From: Eugene <JohnBat26@gmail.com>
>> To: Tomcat Users List <users@tomcat.apache.org>
>> 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: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message