Forum Discussion
jafar_39850
Nimbostratus
Jun 16, 2008HTTP - HTTPS Redirection POST Content
OK, http to https redirection for our site works.
Here's the iRule code:
when HTTP_REQUEST {
HTTP::redirect https://[getfield [HTTP::host] ":" 1][HTTP::uri]
}
Now, due to some old legacy site that we need to maintain, we ran into a bit of a problem.
The site would receive POST values from a URL site, but seems like in the transition from http to https, the POST values were lost. Example: I created a HTML page with this in:
action="http://testsite/printPost.php" method="post">
The printPost.php would just print out the value of the text box.
If I point my host file directly to the server, it works. POST value is displayed properly.
If I point it to F5, the site gets redirected to HTTPS but the POST value is missing.
Help?
- Manuel_Gabaldon
Nimbostratus
Unfortunately that's correct, the POST gets lost when being redirected. That's the correct behavior of the HTTP protocol and your browser. - hoolio
Cirrostratus
mgabaldon is correct in that the browser will send a GET request to the new location--not a POST.
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