Forum Discussion

Raymond_Cheung_'s avatar
Raymond_Cheung_
Icon for Nimbostratus rankNimbostratus
Apr 08, 2005

Can I search and replace part of the uri with irule?

For example

 

 

HTTP/1.1 302 Redirect

 

Date: Fri, 08 Apr 2005 01:01:13 GMT

 

Server: Microsoft-IIS/6.0

 

Location:

 

https://xxx.xxx.net/obrareq.cgi?t%3D0%20o%3D%20no%3D%20r%3D%2

 

0nr%3D%20wu%3D%2Fportal%2Fsso%2FSSOLogin.aspx%20wh%3Dx.x.x.x%20wo%

 

3D1%20wa%3D15%20ws%3D20050407T15590585129%20rh%3Dhttp%3A%2F%2Fx.x.x.x%20ru%3D%252Fportal%252Fsso%252FSSOLogin.aspx%3F

 

Content-Length: 0

 

Set-Cookie: BIGipServerxxx_xxx=17460746.20480.0000; expires=Sat, 09-Apr-2005 01:02:45 GMT; path=/

 

 

I need the "http" within the uri be "https"

 

 

To

 

 

https://xxx.xxx.net/obrareq.cgi?t%3D0%20o%3D%20no%3D%20r%3D%2

 

0nr%3D%20wu%3D%2Fportal%2Fsso%2FSSOLogin.aspx%20wh%3Dx.x.x.x%20wo%

 

3D1%20wa%3D15%20ws%3D20050407T15590585129%20rh%3Dhttps%3A%2F%2Fx.x.x.x%20ru%3D%252Fportal%252Fsso%252FSSOLogin.aspx%3F

 

 

Is there a way I can do that?

 

I am really new on iRule, please help!