Forum Discussion

Christopher_Hac's avatar
Christopher_Hac
Icon for Nimbostratus rankNimbostratus
Oct 03, 2006

ReturnURL HTTPS into HTTP --help

Hello

 

 

I currently have problem with web page using ReturnURL or redirect page from secure page back into normal page.

 

 

The web server has secure login web site with the following paramater:

 

 

https://www.abcde.com/login.aspx?ReturnURL=%2fuipriv%2fsport.aspx

 

 

but after submitting button or logging in, it keeps coming back to the secure web page; it only works only if I added the "http://www.abcde.com" after ReturnURL as shown below

 

 

https://www.abcde.com/login.aspx?ReturnURL=http://www.abcde.com%2fuipriv%2fsport.aspx

 

 

Please advise whether there is an option/setting on ip3400 for this or how to insert "http://www.abcde.com" using irule?

 

 

Thank you in advance.

 

 

Chris
  • You can manipulate the URI with the HTTP::uri command. That in conjunction with the TCL string command should get you going.

    when HTTP_REQUEST {
      if { [HTTP::uri] contains "ReturnURL=%" } {
        HTTP::uri [string map {"ReturnURL=%" "ReturnURL=http://www.abcde.com%" } [HTTP::uri]]  
      }
    }

    What this does is look for the existence of the string "ReturnURL=%" in the HTTP::uri and if it is found, it does a string map replacing "ReturnURL=%" with "ReturnURL=http://www.abcde.com%" and assigns the new value to the HTTP::uri.

    Hope this helps...

    -Joe