Forum Discussion
http redirect changes a post to a get
I'm using a standard http to https redirect but it is changing a post transcation to a get.
Here's my rule. How do I do I leave the Post intact and still enforce SSL?
when HTTP_REQUEST { HTTP::redirect https://[HTTP::host][HTTP::uri] }
Thanks in advance.
Dave
- spark_86682Historic F5 AccountThat's just the way that browsers typically react to redirect responses to their POST requests. I don't think there's any way around it. This question has come up several times before; try searching the forum.
- nitassEmployeeHTTP POST redirect preserving POST data by Nat
- DaveC_53879NimbostratusNitass,
- nitassEmployeeI don't see how to make this redirect. Am I missing something simple? it is done by javascript in response content.
- DaveC_53879NimbostratusBut it's not redirecting. I just don't see why not.
- nitassEmployeedid you see javascript in the first response from bigip?
- RiverFishAltostratusSo the only way to fix this is to remove my redirect iRule "when HTTP_REQUEST { HTTP::redirect https://[HTTP::host][HTTP::uri] }" and add that big scary iRule that Nitass posted a link to? There is no tcp or http profile setting I can turn on or off?
- What_Lies_Bene1Cirrostratus
There is no TCP or HTTP profile setting. This isn't an issue with the F5 it's an issue with how browsers respond to redirects. Can you not modify the webpage or application logic that's causing the POST using HTTP to use HTTPS, ultimately that is the root cause of the issue.
- ArieAltostratus
I don't know the details of your situation, but it would seem that redirecting a POST to from HTTP to HTTPS would defeat the purpose of using SSL in the first place. If the user has already submitted the data (POST) it's already travelled out in the open (over port 80) and the data should be considered compromised.
If it is not possible to fix the page you could change the HTML as it travels through the LTM and swap out the URL on the page so the POST uses the secure protocol.
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