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...
lunitic_56137
Nimbostratus
Jan 31, 2013This did not work. I have found out some more info now. This is currently working in a Juniper DX using their keyword of append. Here is the snippet:
request_header "Host" equals "ecommerce.company.com" and url contains "/companyb2c/b2c" then replace url term "/companyb2b/b2b" and append query_string "&login=true" and route_request target_host "192.168.1.101:80"
The DX is doing a lookup, changing the b2c to b2b and then appending &login=true to the end of the query string.
I have a pretty ugly iRule that is doing a switch for all of the uri changes that need to be made but the append part doesn't work. In the uri checks, it looks for b2c and redirect rewrites to b2b by using the standard HTTP::redirect and giving it the full path. But now there is a server component to this all. When you get redirected to the b2b link and select a product, the server adds the "&Product=76543". This number is dynamic so I dont know what it is and I cant figure out how to also append the "&login=true" to it as well.
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