Question: Is it possible to get the raw HTTP Request from the HttpServletRequest object? I want to see the raw request as a String if at all possible.

I need to get the full text of the request, in this case it's a POST request, so the URL doesn't help. It's also part of a multi-part form, so I can't just call the "getParameterNames()" or "getParameterValues()".

Thank you,

Answer: 
Sounds like you need a [servlet filter](http://java.sun.com/javaee/5/docs/api/javax/servlet/Filter.html). There is no standard way to handle `multipart/form-data`, so you'll have to take care to cache this data appropriately when [wrapping the HttpServletRequest](http://java.sun.com/javaee/5/docs/api/javax/servlet/http/HttpServletRequestWrapper.html).
If you want to get the whole request to a String you can do it with one line of code using the apache IOUtils library.

```
String myString = org.apache.commons.io.IOUtils.toString(request.getInputStream());

```