Forum Discussion
kouriada_284551
Nimbostratus
Oct 09, 2017this value is dynamically changed (like Apple = vendor1;Lemon = vendor2)
Hello guys,
I have one problem for which I don't have enough irule's experiences, maybe someone will know...
I need to write irule which takes a value from one url and paste it to another, thi...
Stanislas_Piro2
Cumulonimbus
Oct 09, 2017You can try something like that:
when HTTP_REQUEST {
if {[scan [HTTP::uri] "/test/sun/%s/%s" val1 val2] == 2} {
switch $val1 {
"A" {HTTP::redirect "http://Bad.day.corp/Message?channel1=${val2}:Olala/blabla"}
"B" {HTTP::redirect "http://Bad.day.corp/Message?channel2=${val2}:Olala/blabla"}
}
}
}
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
