tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tommy Pham <tommy...@yahoo.com>
Subject Re: Loss of body POST request...
Date Tue, 15 Sep 2009 13:01:30 GMT
----- Original Message ----
> From: David Smith <dns4@cornell.edu>
> To: Tomcat Users List <users@tomcat.apache.org>
> Sent: Tuesday, September 15, 2009 5:35:07 AM
> Subject: Re: Loss of body POST request...
> 
> 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
> 

Eugene,

Is the POST URI or multipart encoded?  You didn't mention it and I forgot to ask you.

Regards,
Tommy

> 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: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message