Forum Discussion
Pav_70755
Sep 20, 2011Nimbostratus
HTTP 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
Sep 21, 2011Nimbostratus
Not 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
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