Forum Discussion
Aditya_Mehra
Cirrus
Aug 31, 2018iRule 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 fro...
Kevin_Stewart
Employee
Aug 31, 2018That's fine. So,
when HTTP_REQUEST {
if { ( [HTTP::url] equals "/a/b/c/d/e/v2" ) and ( [HTTP::method] equals "POST" ) } {
set logindata [b64encode "username:password"]
HTTP::header insert Authorization "Basic $logindata"
pool vip2_pool
}
}
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects