Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Apache Tomcat »

Hot to access raw POST Data in servlet?

Joe Kramer

2007-07-17

Replies:

Hello,

I can't find a way to do a simple thing - access raw postdata in
servlet service()/doPost() method. (The data that goes after the
headers.)
In old Servlet API it was possible using
javax.servlet.http.HttpUtils.parsePostData() which is now deprecated.
Servlet API only seem to have methods to access request parameters and
properties in HttpServletRequest, but not the request data itself.

What is the best/pssible practice to do that?

Thanks.

---------------------------------------------------------------------
To start a new topic, e-mail: users@(protected)
To unsubscribe, e-mail: users-unsubscribe@(protected)
For additional commands, e-mail: users-help@(protected)

©2008 junlu.com - Jax Systems, LLC, U.S.A.