Forum Discussion
Post metod to a VIP which has HTTP_TO HTTPS redirect irule
Hello Friends,
I have been trying to use post method for an application hosted in LB VIrutal server say http://abc.xyz.com and this virtual is set with http_to _https redirect irule.
When i post to http://abc.xyz.com it doesnt works , but same works for
is there any additional configuraions or changes needs to be done in irule to make the post work ?
Please help, thanks in advance,
-SAM
7 Replies
- Hannes_Rapp
Nimbostratus
HTTP protocol does not have a redirect for POST method. You can achieve what you're looking for with HTTP respond 307 status redirect (repeat POST request to a new location). Note that Web Browsers will prompt the user to confirm such redirects. By design, its not meant to work the same as GET redirects due to security constraints. Personally, I see POST 307 redirect as a last-resort workaround which is acceptable for internal-use-only corporate tools. In case of client-facing apps, I would not recommend it. Such security-related prompts at your web-site won't contribute to positive customer experience.
- Hannes_Rapp_162
Nacreous
HTTP protocol does not have a redirect for POST method. You can achieve what you're looking for with HTTP respond 307 status redirect (repeat POST request to a new location). Note that Web Browsers will prompt the user to confirm such redirects. By design, its not meant to work the same as GET redirects due to security constraints. Personally, I see POST 307 redirect as a last-resort workaround which is acceptable for internal-use-only corporate tools. In case of client-facing apps, I would not recommend it. Such security-related prompts at your web-site won't contribute to positive customer experience.
- Michael_Jenkins
Cirrostratus
In addition to Hannes' response - which would be much simpler - it's possible to use an iRule to return a page that resubmits the request automatically. That'd be something like what's in this codeshare. May not always be the right way to do it, but it is an option as well.
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
* 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