In my servlet i’m trying to response.sendRedirect() a request to another servlet (which is deployed via different .war). I understood that sendRedirect() makes a new request while forwarding, but looks like there is no mechanism to change new request’s method type. Basically i’m trying to see if there is an option to choose Get or Post while calling sendRedirect.
Please suggest me if there is a way to change the request type or if not i’m trying to understand why it is not allowed.
response.sendRedirectis always aGET[also in broad term , redirect always GET s]. You can forward for your choiceSee Also