Forum Discussion
Raviteja_Danda_
Nimbostratus
Oct 04, 2017Need to redirect to new page with post method
Hi All, I have a Requirement :
If HeaderInfo has Authentication Code:
redirect to page 1
else:
redirect to page 2(which provides accesstoken and must be POST method)
But Wh...
Simon_Blakely
Employee
Oct 05, 2017What HTTP response code are you using for the redirect?
The irules HTTP::redirect uses a HTTP 302. Conventional browser behaviour for a 302 redirect replaces the POST method with a GET.
The HTTP 307 redirect will do a redirect that does not change the method. If you are using an irule, use HTTP::respond 307 ...
Please note, not all browsers will correctly follow a 307
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects