My server moved to a new location and I need to redirect requests to the new location. If I use HttpServletResponse.sendRedirect(new_server_location), I am losing all the POST d
The sendRedirect() is by default a HTTP 302 redirect. You want to send a HTTP 307 redirect instead.
sendRedirect()
response.setStatus(307); response.setHeader("Location", new_server_location);
This only issues a default browser warning on most browsers.