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...
hoolio
Cirrostratus
Jun 16, 2008mgabaldon is correct in that the browser will send a GET request to the new location--not a POST.
Another option would be to rewrite the form action on the previous response to https://testsite/printPost.php. This could potentially be done on the application or if the traffic is going through the LTM you could use a stream profile and STREAM:: commands.
If rewriting the form action isn't possible, you could also try parsing the POST parameters and rewriting the 302 redirect's Location value to include them as URI parameters. If the application accepts the parameters in the URI this could work.
Aaron
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