Forum Discussion

Aditya_Mehra's avatar
Aug 31, 2018

iRule help for

I have a virtual server and need to modify the traffic via an iRule Requirement:

 

1. Need to add authorization via static credential

 

2. Request comes in as POST , should go as POST from the F5, but server sees as GET from the F5

 

3. Redirect to redirect to another url via an iRule

 

I have using the below but it is not working.

 

when HTTP_REQUEST {

 

set logindata [b64encode "usermane:password"]

 

HTTP::header insert Authorization "Basic $logindata"

 

HTTP::redirect "https://www.abc.com[HTTP::uri]"

 

} '

 

17 Replies