简体   繁体   中英

redirect 302 losing POST data

I have Global load balancer URL, whenever I hit the page with Global loadbalnacer URL its redirect to my local load balancer URL in a response to 302.

Below is the issue which i am facing on 302 redirect.

I have a form on my jsp page, when I am submitting my form via POST with required parameters to my Global load balancer URL, then browser sends a request to Global loadbalancer URL, it replies with a “302” and tells it to redirect to the local load balancer. We are getting to a server and drawing the page but losing the parameters due to the redirect request.

Is there way where i can the avoid losing parameter in 302 redirect?

Instead of using a 302 redirect, use a 307 redirect. For a more in deep explanation check this question

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM