Forum Discussion

pr's avatar
pr
Icon for Nimbostratus rankNimbostratus
Mar 20, 2017

Post content issue in F5

Hi All,

 

I have created one https & one http virtual server with below settings: 1.) SNI Feature over https vs: since i am using SNI feature so all websites are mapped to single https VS. 2.) created pool based redirection on https vs for that i have created the pool based redirection irule which is working as expected. 3.) For http-> https redirection i have created the irule for that.

 

Now problem arises when customer entered the user information/parameters in html based form and click on invoke the contents of post request are not fully displayed and getting generic output in all cases.Below is the redirection irule i am using , I am getting hits on irule also.In addition to that if I tried to open the website directly from server expected results are we getting.Please help me on this.

 

4 Replies

  • DEJ's avatar
    DEJ
    Icon for Nimbostratus rankNimbostratus

    Hello,

     

    Although it looks like your iRules and example got cut off I can think of one issue you could be having. In your configuration if you are doing a 301 or 302 redirect after a POST, the browser will send a GET request to the new location and not a POST.

     

    • To address this you could try a 307 redirect to preserve the POST request; however, whether it will work or not depends on the client's browser.

       

    • If the redirect is due to switching from http to https I would advise to do the redirect before any forms to POST from are available, otherwise the POST is being sent in clear text (http).

       

    For further trouble shooting, please provide additional information on configuration as well as tests (working and non working). Be sure to sanitize configuration as necessary.

     

    Thank you,

     

    - D

     

  • Have you enabled redirect rewrite to all on your HTTP Profile? (on the HTTPS VS)

     

    Cheers,

     

    Kees

     

  • Ok, revert the iRule and enable redirect rewrite to all on the HTTP profile on the HTTPS VS.

     

    Cheers,

     

    Kees