Forum Discussion
lunitic_56137
Nimbostratus
Jan 29, 2013Appending content to dynamic variables a uri
Ok, I asked this before but I never received a solution for it. I have a web/app server that is returning dynamic uri variables and I need to append that.
For example:
Request comes in from the client as
http://www.company.com/companyb2c/b2c/in.do?shop=GL-L0
The web/app server returns a 302 with
http://www.company.com/companyb2c/b2c/in.do?shop=GL-L0&Product=26537
The "Product=26537" is vital and is dynamic. The number changes with each individual request for information. We need for the F5 to append this by adding "&login=true" after the number. So the full url should be formatted to be:
http://www.company.com/companyb2c/b2c/in.do?shop=GL-L0&Product=26537&login=true
I remembered there was a way to tell the parser in iRules to count past a certain point but I cannot find it in the iRule keywords.
Any ideas?
13 Replies
- Kevin_Stewart
Employee
That code was tested on v11 and worked. - lunitic_56137
Nimbostratus
hmm, I just put it on a v11.2 box and it wouldn't load. Maybe I am missing a bracket or something. ok thanks - lunitic_56137
Nimbostratus
Yup. Missing a brace.
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