Forum Discussion

Franko_Ng_30513's avatar
Franko_Ng_30513
Icon for Nimbostratus rankNimbostratus
Feb 28, 2009

http 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!

11 Replies

  • ummm....

     

    you won't have virtual command either.

     

    the url that I sent uses technique called virtual targeting virtual.

     

     

    http://devcentral.f5.com/wiki/default.aspx/iRules/virtual.html

     

     

    so forget about it

     

     

    btw, back to your original question. there is no way to create redirect with POST (somebody correct me if I am wrong)

     

    but as I mentioned, you can use redirect...then when client send new GET to BIG-IP, this GET request does not need to forward to server. BIG-IP replies with page that contains auto-POST javascript...(use HTTP::respond)

     

     

    this technique is simple and has been used by another product - FirePass also.

     

     

    if you are familiar to javascript, here is something what I meant

     

     

    something like..

     

    onload=document.form.submit();

     

     

    sorry if you are not familiar with javascript, I don't know of it much either.

     

    you may do the same as me (google it)

     

     

    PS: this won't work if new http request (after redirect) does not come to BIG-IP