Forum Discussion
Franko_Ng_30513
Nimbostratus
Feb 28, 2009http to https with POST Parameters impossible?
I had been searching for some time whether it is possible to redirect http to https with POST parameters. It seems that we are out of luck, especially we are still on 9.1.2. I notice that there is new command like HTTP::retry, HTTP::request which are only available in 9.2. Some reference saying that the POST can be pass along such as http://devcentral.f5.com/Default.aspx?tabid=53&forumid=5&tpage=1&view=topic&postid=27548. But I am not sure is it still valid for http to https redirection, especially they are using HTTP::retry. Any one had tried? BTW, has anyone worked out a way to do it before version 9.2?
Some also mentioned that it can be achieved with STREAM command. Since I am very new to iRule, I would be appreciated if any expert here can illustrate with some example how this can be done. Thanks!
- AndyR_13000
Nimbostratus
Would this not work: - Franko_Ng_30513
Nimbostratus
No, it didn't. I tried and check the POST data is lost. Here's what I tried: - hoolio
Cirrostratus
As you've found, redirecting a POST request triggers the client to make a GET request to the new Location. Any POST data is lost in the process. In terms of LTM configuration, it would probably be easiest to rewrite the response which generates the POST via HTTP so that the POST is made via HTTPS. - Franko_Ng_30513
Nimbostratus
it would probably be easiest to rewrite the response which generates the POST via HTTP
- Franko_Ng_30513
Nimbostratus
Thanks for your reply! The redirect request is still in GET, right? Is it possible to make a redirect request a POST request instead of GET? I need this because I am redirecting this to a black-box application which only accept POST request. - Nat_Thirasuttakorn
Employee
yes, redirect is still GET - Franko_Ng_30513
Nimbostratus
So can we come to a conclusion that there is no way to generate POST request from BIG-IP? - Nat_Thirasuttakorn
Employee
I am not sure how to answer this question. - Franko_Ng_30513
Nimbostratus
Hi natty76, we are using 9.1.2 so we don't have the "retry" command. Which version are you on? Have you tested the method you mentioned whether the request is "POST" or still a "GET"? Please also test the "retry" with another host which will simulate the case "HTTP::redirect". I am not sure whether it allows you to change the host or not when using "retry". Thx for the research! - Nat_Thirasuttakorn
Employee
ummm....
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