How to get the request string including parameters

Viewed 46388

I have an odd exception in our application and I'd like to log when it occurs and include the complete request string including the parameters.

When I try

log.warn("Weird request " + request.getRequestURL());

I get the request string but not the parameters which were included with ? and &.

example:

/testRequest.do?param1=1&param2=2

I only see

/testRequest.do

Can I get this whole string somewhere?

1 Answers
Related