Forum Discussion
Pav_70755
Nimbostratus
Sep 20, 2011HTTP Re-Direct uri replace?
I have the following rule written
when HTTP_REQUEST {
if { [HTTP::uri] contains "?storyId=" } {
pool STAGE_directmarketing.thomsonnet.co.uk-80
...
Brian_69413
Nimbostratus
Sep 21, 2011Not sure why substr is not working...you could also try a string trimleft since you know exactly what the values are. Replace the substr lines with these:
set wininsert string trimleft [HTTP::uri] 4
set talkinsert string trimleft [HTTP::uri] 5
set findinsert string trimleft [HTTP::uri] 5
There are many other ways such as using regsub, string map or other string manipulation functions
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
