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
Wow, I completely misinterpreted string trimleft. I thought the chars variable was an integer of how many characters you wanted to trim from the left, but instead, it is a list of characters that you want to match, so it would be something like this:
set wininsert [string trimleft [HTTP::uri] /win]
This is very dangerous though since it could strip other parts of the URI away...I guess regsub string match is the best bet for this.
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