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: 
You can read the raw HTTP request by doing:

```
ServletInputStream in = request.getInputStream();

```

and then use the regular `read`methods of the InputStream.

Hope that helps.
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());

```